- `Array.forEach` becomes for-of loop or `array.forEach`. - `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`. - `Array.map` becomes `Array.from` - `Array` copy + concatenation becomes Array literal + spread syntax. - All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)` Differential Revision: https://phabricator.services.mozilla.com/D27802
17 KiB
17 KiB