array-tools
Advanced tools
Comparing version 1.8.1 to 1.8.2
@@ -202,3 +202,3 @@ "use strict"; | ||
return []; | ||
} else if (t.isPlainObject(any) && any.length >= 0 && any.length === Math.floor(any.length)){ | ||
} else if (t.isArrayLike(any)){ | ||
return Array.prototype.slice.call(any); | ||
@@ -205,0 +205,0 @@ } else { |
{ | ||
"name": "array-tools", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "Lightweight tool-kit for working with arrays", | ||
@@ -39,4 +39,4 @@ "repository": "https://github.com/75lb/array-tools.git", | ||
"object-tools": "^1.1.0", | ||
"typical": "^2" | ||
"typical": "^2.1" | ||
} | ||
} |
@@ -10,5 +10,9 @@ "use strict"; | ||
t.deepEqual(a.arrayify([ 1, 2 ]), [ 1, 2 ]); | ||
t.deepEqual(a.arrayify(arguments), [ t ]); | ||
function func(){ | ||
t.deepEqual(a.arrayify(arguments), [ 1, 2, 3 ]); | ||
} | ||
func(1, 2, 3); | ||
t.end(); | ||
}); |
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
1177
Updatedtypical@^2.1