prefer-single-call Combine consecutive Array.push or Array.unshift calls Consecutive calls that append or prepend values to the same array repeat dispatch and capacity work. Instead, you SHOULD pass all values to one push or unshift call. Calls are combined only when the arguments cannot observe the intermediate array state. - Category: performance - Level: warning - Fix: automatic - Scope: module Reported function append(values: int32[]): void { values.push(1); values.push(2); } Accepted function append(values: int32[]): void { values.push(1, 2); } Prior art - eslint-plugin-unicorn ยท prefer-single-call language/linter/src/rules/performance/prefersinglecall.rs:8