MCPcopy
hub / github.com/di-sukharev/opencommit / pushToArray

Function pushToArray

out/cli.cjs:28132–28134  ·  view source on GitHub ↗
(arr, valueOrArray)

Source from the content-addressed store, hash-verified

28130 var isArray2 = Array.isArray;
28131 var push = Array.prototype.push;
28132 var pushToArray = function(arr, valueOrArray) {
28133 push.apply(arr, isArray2(valueOrArray) ? valueOrArray : [valueOrArray]);
28134 };
28135 var toISO = Date.prototype.toISOString;
28136 var defaultFormat = formats["default"];
28137 var defaults2 = {

Callers 2

stringify2Function · 0.85

Calls 1

isArray2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…