extra-iterable
Advanced tools
Comparing version 2.0.36 to 2.0.37
10
index.js
@@ -712,2 +712,11 @@ /** | ||
/** | ||
* Removes first value. | ||
* @param {Iterable} x an iterable | ||
* @returns {Array} [value, iterable] | ||
*/ | ||
function shift(x) { | ||
var ix = x[Symbol.iterator](); | ||
return [ix.next().value, ix]; | ||
} | ||
/** | ||
* Counts the number of values. | ||
@@ -849,2 +858,3 @@ * @param {Iterable} x an iterable | ||
exports.repeat = repeat; | ||
exports.shift = shift; | ||
exports.size = size; | ||
@@ -851,0 +861,0 @@ exports.slice = slice; |
{ | ||
"name": "extra-iterable", | ||
"version": "2.0.36", | ||
"version": "2.0.37", | ||
"description": "Standard utility methods for Iterable.", | ||
@@ -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
25414
852