extra-iterable
Advanced tools
Comparing version 2.0.2 to 2.0.3
14
index.js
@@ -14,2 +14,16 @@ /** | ||
} | ||
/** | ||
* Checks if any value satisfies a test. | ||
* @param {Iterable} x an iterable | ||
* @param {function} fn test function (v, i ,x) | ||
* @param {object?} ths this argument | ||
* @returns {boolean} | ||
*/ | ||
function some(x, fn=null, ths=null) { | ||
var i = -1; | ||
for(var v of x) | ||
if(fn.call(ths, v, ++i, x)) return true; | ||
return false; | ||
} | ||
exports.every = every; | ||
exports.some = some; |
{ | ||
"name": "extra-iterable", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6478
28
0