Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "sliced", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"description": "A faster Node.js alternative to Array.prototype.slice.call(arguments)", | ||
@@ -11,4 +11,5 @@ "repo" : "aheckmann/sliced", | ||
], | ||
"scripts": ["lib/sliced.js", "index.js"], | ||
"author": "Aaron Heckmann <aaron.heckmann+github@gmail.com>", | ||
"license": "MIT" | ||
} |
0.0.5 / 2013-02-05 | ||
================== | ||
* optimization: remove use of arguments [jkroso](https://github.com/jkroso) | ||
* add scripts to component.json [jkroso](https://github.com/jkroso) | ||
* tests; remove time for travis | ||
0.0.4 / 2013-01-07 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -11,7 +11,3 @@ | ||
module.exports = function () { | ||
var args = arguments[0]; | ||
var slice = arguments[1]; | ||
var sliceEnd = arguments[2]; | ||
module.exports = function (args, slice, sliceEnd) { | ||
var ret = []; | ||
@@ -26,10 +22,10 @@ var len = args.length; | ||
var end = 3 === arguments.length | ||
? sliceEnd < 0 | ||
if (sliceEnd !== undefined) { | ||
len = sliceEnd < 0 | ||
? sliceEnd + len | ||
: sliceEnd | ||
: len; | ||
} | ||
while (end-- > start) { | ||
ret[end - start] = args[end]; | ||
while (len-- > start) { | ||
ret[len - start] = args[len]; | ||
} | ||
@@ -36,0 +32,0 @@ |
{ | ||
"name": "sliced", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A faster Node.js alternative to Array.prototype.slice.call(arguments)", | ||
@@ -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
11422
200