MCPcopy Create free account
hub / github.com/blinker-iot/blinker-js / arrayRemove

Function arrayRemove

lib/blinker.ts:737–748  ·  view source on GitHub ↗
(array, index)

Source from the content-addressed store, hash-verified

735}
736
737function arrayRemove(array, index) {
738 if (index <= (array.length - 1)) {
739 for (var i = index; i < array.length; i++) {
740 array[i] = array[i + 1];
741 }
742 }
743 else {
744 // throw new Error('超出最大索引!');
745 }
746 array.length = array.length - 1;
747 return array;
748}

Callers 2

delTimingDataMethod · 0.85
delTimingTaskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected