extra-array
Advanced tools
Comparing version 4.0.128 to 4.0.129
16
index.js
@@ -797,2 +797,10 @@ 'use strict'; | ||
} | ||
function find(x, ft) { | ||
return x.find(ft); | ||
} | ||
function findRight(x, ft) { | ||
for (var i = x.length - 1; i >= 0; --i) | ||
if (ft(x[i], i, x)) | ||
return x[i]; | ||
} | ||
function take(x, n = 1) { | ||
@@ -844,10 +852,2 @@ return x.slice(0, n); | ||
} | ||
function find(x, ft) { | ||
return x.find(ft); | ||
} | ||
function findRight(x, ft) { | ||
for (var i = x.length - 1; i >= 0; --i) | ||
if (ft(x[i], i, x)) | ||
return x[i]; | ||
} | ||
function scanWhile(x, ft) { | ||
@@ -854,0 +854,0 @@ var i = -1; |
{ | ||
"name": "extra-array", | ||
"version": "4.0.128", | ||
"version": "4.0.129", | ||
"description": "An array is a collection of values, stored contiguously.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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