MCPcopy Index your code
hub / github.com/bcoin-org/bcoin / remove

Method remove

lib/script/script.js:2588–2601  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

2586 }
2587
2588 remove(index) {
2589 if (index < 0)
2590 index += this.code.length;
2591
2592 if (index < 0 || index >= this.code.length)
2593 return null;
2594
2595 const items = this.code.splice(index, 1);
2596
2597 if (items.length === 0)
2598 return null;
2599
2600 return items[0];
2601 }
2602
2603 set(index, op) {
2604 if (index < 0)

Callers 10

removeOpMethod · 0.95
removeDataMethod · 0.95
removePushMethod · 0.95
removeStringMethod · 0.95
removeSmallMethod · 0.95
removeNumMethod · 0.95
removeIntMethod · 0.95
removeBoolMethod · 0.95
removeSymMethod · 0.95
executeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected