extra-iterable
Advanced tools
Comparing version 3.0.125 to 3.0.126
25
index.js
@@ -536,18 +536,21 @@ 'use strict'; | ||
var fm = fm || IDENTITY; | ||
var iy = y[Symbol.iterator](); | ||
var b = iy.next(); | ||
if (b.done) | ||
var y1 = [...map(y, fm)]; | ||
var Y = y1.length; | ||
if (Y === 0) | ||
return 0; | ||
var i = -1, j = -1, a = -1; | ||
var v1 = fm(b.value, ++j, y); | ||
var si = [], sn = [], i = -1; | ||
for (var u of x) { | ||
var u1 = fm(u, ++i, x); | ||
for (var s = 0, S = si.length; s < S; ++s) { | ||
var v1 = y1[sn[s]]; | ||
if (fc(u1, v1) !== 0) | ||
continue; | ||
if (++sn[s] === Y) | ||
return si[s]; | ||
} | ||
var v1 = y1[0]; | ||
if (fc(u1, v1) !== 0) | ||
continue; | ||
if (a < 0) | ||
a = i; | ||
var b = iy.next(); | ||
if (b.done) | ||
return a; | ||
v1 = fm(b.value, ++j, y); | ||
si.push(i); | ||
sn.push(1); | ||
} | ||
@@ -554,0 +557,0 @@ return -1; |
{ | ||
"name": "extra-iterable", | ||
"version": "3.0.125", | ||
"version": "3.0.126", | ||
"description": "An iterable is a sequence of values.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
124984
3870