MCPcopy Index your code
hub / github.com/nodejs/node / unorderedRemoveItemAt

Function unorderedRemoveItemAt

test/fixtures/snapshot/typescript.js:2361–2365  ·  view source on GitHub ↗
(array, index)

Source from the content-addressed store, hash-verified

2359 }
2360 ts.orderedRemoveItemAt = orderedRemoveItemAt;
2361 function unorderedRemoveItemAt(array, index) {
2362 // Fill in the "hole" left at `index`.
2363 array[index] = array[array.length - 1];
2364 array.pop();
2365 }
2366 ts.unorderedRemoveItemAt = unorderedRemoveItemAt;
2367 /** Remove the *first* occurrence of `item` from the array. */
2368 function unorderedRemoveItem(array, item) {

Callers 2

createSetFunction · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…