Comparing version 0.2.5 to 0.2.6
@@ -69,5 +69,6 @@ /** | ||
function toArray(iterable) { | ||
var array = new Array(iterable.length); | ||
for (var i = 0, item; (item = iterable[i]) !== undefined; i++) { | ||
array.push(item); | ||
var length = iterable.length; | ||
var array = new Array(length); | ||
for (var i = 0; i < length; i++) { | ||
array[i] = iterable[i]; | ||
} | ||
@@ -74,0 +75,0 @@ return array; |
{ | ||
"name": "tarry", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Utility library for manipulating JavaScript Arrays", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
15442
437