extra-array
Advanced tools
Comparing version
@@ -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
190725
0.03%5225
0.04%