MCPcopy Create free account
hub / github.com/ljharb/qs / pushToArray

Function pushToArray

lib/stringify.js:23–25  ·  view source on GitHub ↗
(arr, valueOrArray)

Source from the content-addressed store, hash-verified

21var isArray = Array.isArray;
22var push = Array.prototype.push;
23var pushToArray = function (arr, valueOrArray) {
24 push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
25};
26
27var toISO = Date.prototype.toISOString;
28

Callers 2

stringifyFunction · 0.85
stringify.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected