MCPcopy Create free account
hub / github.com/tinyplex/tinybase / arrayClear

Function arrayClear

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:95–95  ·  view source on GitHub ↗
(array, to)

Source from the content-addressed store, hash-verified

93var arrayIsEmpty = (array) => size(array) == 0;
94var arrayReduce = (array, cb, initial) => array.reduce(cb, initial);
95var arrayClear = (array, to) => array.splice(0, to);
96var arrayPush = (array, ...values) => array.push(...values);
97var arrayPop = (array) => array.pop();
98var arrayUnshift = (array, ...values) => array.unshift(...values);

Callers 1

clearCheckpointIdsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…