MCPcopy Index your code
hub / github.com/node-modules/utility / arraySplice

Function arraySplice

benchmark/array_splice.cjs:9–12  ·  view source on GitHub ↗
(array, index)

Source from the content-addressed store, hash-verified

7const suite = new Benchmark.Suite();
8
9function arraySplice(array, index) {
10 array.splice(index, 1);
11 return array;
12}
13
14function spliceOne(array, index) {
15 for (let i = index, k = i + 1, n = array.length; k < n; i += 1, k += 1) {

Callers 1

array_splice.cjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…