methodqueue
Advanced tools
Comparing version 0.1.2 to 0.2.0
13
index.js
@@ -40,3 +40,16 @@ class Queue { | ||
} | ||
/** | ||
* Remove methods from queue. | ||
* @param {Number[]|Number} index | ||
*/ | ||
remove(...index) { | ||
if (typeof index == "array") { | ||
index.forEach(i => { | ||
this._queuedMethods.splice(i, 1) | ||
}) | ||
} else { | ||
this._queuedMethods.splice(index[0], 1) | ||
} | ||
} | ||
} | ||
module.exports = Queue |
{ | ||
"name": "methodqueue", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "A simple queueing system for methods.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4058
53