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

Function __spreadArray

tslib.es6.mjs:214–222  ·  view source on GitHub ↗
(to, from, pack)

Source from the content-addressed store, hash-verified

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++) {
216 if (ar || !(i in from)) {
217 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
218 ar[i] = from[i];
219 }
220 }
221 return to.concat(ar || Array.prototype.slice.call(from));
222}
223
224export function __await(v) {
225 return this instanceof __await ? (this.v = v, this) : new __await(v);

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…