Permalink
Browse files

added component.json and reversed loop

  • Loading branch information...
1 parent 07f923f commit d0646210d2bc159d0fc4edb57cf2fd8de3021929 @jkroso jkroso committed with Jan 7, 2013
Showing with 15 additions and 2 deletions.
  1. +13 −0 component.json
  2. +2 −2 lib/sliced.js
View
@@ -0,0 +1,13 @@
+{
+ "name": "sliced",
+ "version": "0.0.3",
+ "description": "A faster Node.js alternative to Array.prototype.slice.call(arguments)",
+ "repo" : "aheckmann/sliced",
+ "keywords": [
+ "arguments",
+ "slice",
+ "array"
+ ],
+ "author": "Aaron Heckmann <aaron.heckmann+github@gmail.com>",
+ "license": "MIT"
+}
View
@@ -28,8 +28,8 @@ module.exports = function () {
: sliceEnd
: len;
- for (var i = start; i < end; ++i) {
- ret[i - start] = args[i];
+ while (end-- > start) {
+ ret[end - start] = args[end];
}
return ret;

0 comments on commit d064621

Please sign in to comment.