MCPcopy Create free account
hub / github.com/microsoft/tslib / __spreadArrays

Function __spreadArrays

tslib.es6.js:206–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205/** @deprecated */
206export function __spreadArrays() {
207 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
208 for (var r = Array(s), k = 0, i = 0; i < il; i++)
209 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
210 r[k] = a[j];
211 return r;
212}
213
214export function __spreadArray(to, from, pack) {
215 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…