extra-array
Advanced tools
Comparing version 4.1.24 to 4.1.25
@@ -1292,9 +1292,10 @@ 'use strict'; | ||
function cutAt(x, is) { | ||
var X = x.length; | ||
var j = 0, a = []; | ||
for (var i of is) { | ||
i = Math.max(j, index(x, i)); | ||
var i = i < 0 ? X + i : i; | ||
a.push(x.slice(j, i)); | ||
j = i; | ||
j = Math.max(j, i); | ||
} | ||
a.push(x.slice(i)); | ||
a.push(x.slice(j)); | ||
return a; | ||
@@ -1301,0 +1302,0 @@ } |
{ | ||
"name": "extra-array", | ||
"version": "4.1.24", | ||
"version": "4.1.25", | ||
"description": "An array is a collection of values, stored contiguously.", | ||
@@ -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
190725
5225