MCPcopy Create free account
hub / github.com/nexxtway/react-rainbow / remove

Method remove

src/libs/ResizeSensor/eventQueue.js:17–25  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

15 }
16
17 remove(ev) {
18 const newQueue = [];
19 for (let i = 0, j = this.q.length; i < j; i++) {
20 if (this.q[i] !== ev) {
21 newQueue.push(this.q[i]);
22 }
23 }
24 this.q = newQueue;
25 }
26
27 length() {
28 return this.q.length;

Callers 1

detachFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected