MCPcopy Index your code
hub / github.com/algorithm-visualizer/algorithm-visualizer / remove

Method remove

src/core/layouts/Layout.js:22–29  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

20 }
21
22 remove(key) {
23 const child = this.getObject(key);
24 const index = this.children.indexOf(child);
25 if (~index) {
26 this.children.splice(index, 1);
27 this.weights.splice(index, 1);
28 }
29 }
30
31 removeAll() {
32 this.children = [];

Callers 1

signOutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected