{"_id":"sliced","_rev":"1714","name":"sliced","description":"A faster Node.js alternative to Array.prototype.slice.call(arguments)","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"time":{"modified":"2021-06-03T09:56:02.000Z","created":"2012-09-29T15:55:19.371Z","1.0.1":"2015-07-14T23:58:24.818Z","1.0.0":"2015-07-12T15:04:50.082Z","0.0.5":"2013-02-05T13:53:42.173Z","0.0.4":"2013-01-07T22:42:06.016Z","0.0.3":"2012-09-29T18:17:17.300Z","0.0.2":"2012-09-29T17:50:40.783Z","0.0.1":"2012-09-29T15:55:19.371Z"},"users":{"tur-nr":true,"humantriangle":true,"pid":true,"eyy":true,"axelav":true,"bret":true,"antixrist":true,"quocnguyen":true,"koslun":true,"edwingeng":true,"hayathuk":true,"jream":true},"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"repository":{"type":"git","url":"git://github.com/aheckmann/sliced"},"versions":{"1.0.1":{"name":"sliced","version":"1.0.1","description":"A faster Node.js alternative to Array.prototype.slice.call(arguments)","main":"index.js","files":["LICENSE","README.md","index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/aheckmann/sliced"},"keywords":["arguments","slice","array"],"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"license":"MIT","devDependencies":{"mocha":"1.5.0","benchmark":"~1.0.0"},"dependencies":{},"gitHead":"e7c989016d2062995cd102322b65784ba8977ee3","bugs":{"url":"https://github.com/aheckmann/sliced/issues"},"homepage":"https://github.com/aheckmann/sliced","_id":"sliced@1.0.1","_shasum":"0b3a662b5d04c3177b1926bea82b03f837a2ef41","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"dist":{"shasum":"0b3a662b5d04c3177b1926bea82b03f837a2ef41","size":2446,"noattachment":false,"key":"/sliced/-/sliced-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sliced/download/sliced-1.0.1.tgz"},"directories":{},"publish_time":1436918304818,"_cnpm_publish_time":1436918304818,"_hasShrinkwrap":false},"1.0.0":{"name":"sliced","version":"1.0.0","description":"A faster Node.js alternative to Array.prototype.slice.call(arguments)","main":"index.js","files":["LICENSE","README.md","index.js"],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/aheckmann/sliced"},"keywords":["arguments","slice","array"],"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"license":"MIT","devDependencies":{"mocha":"1.5.0","benchmark":"~1.0.0"},"gitHead":"fec460c13eccb043a60157a163d9bb4c18586256","bugs":{"url":"https://github.com/aheckmann/sliced/issues"},"homepage":"https://github.com/aheckmann/sliced","_id":"sliced@1.0.0","_shasum":"27108fbdf2d00e8431029f2d1c9ddbac2c817e4b","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"dist":{"shasum":"27108fbdf2d00e8431029f2d1c9ddbac2c817e4b","size":2196,"noattachment":false,"key":"/sliced/-/sliced-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sliced/download/sliced-1.0.0.tgz"},"directories":{},"publish_time":1436713490082,"_cnpm_publish_time":1436713490082,"_hasShrinkwrap":false},"0.0.5":{"name":"sliced","version":"0.0.5","description":"A faster Node.js alternative to Array.prototype.slice.call(arguments)","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/aheckmann/sliced"},"keywords":["arguments","slice","array"],"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"license":"MIT","devDependencies":{"mocha":"1.5.0","benchmark":"~1.0.0"},"_id":"sliced@0.0.5","dist":{"shasum":"5edc044ca4eb6f7816d50ba2fc63e25d8fe4707f","size":3476,"noattachment":false,"key":"/sliced/-/sliced-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/sliced/download/sliced-0.0.5.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{},"publish_time":1360072422173,"_cnpm_publish_time":1360072422173,"_hasShrinkwrap":false},"0.0.4":{"name":"sliced","version":"0.0.4","description":"A faster Node.js alternative to Array.prototype.slice.call(arguments)","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/aheckmann/sliced"},"keywords":["arguments","slice","array"],"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"license":"MIT","devDependencies":{"mocha":"1.5.0","benchmark":"~1.0.0"},"_id":"sliced@0.0.4","dist":{"shasum":"34f89a6db1f31fa525f5a570f5bcf877cf0955ee","size":3409,"noattachment":false,"key":"/sliced/-/sliced-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/sliced/download/sliced-0.0.4.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{},"publish_time":1357598526016,"_cnpm_publish_time":1357598526016,"_hasShrinkwrap":false},"0.0.3":{"name":"sliced","version":"0.0.3","description":"A faster Node.js alternative to Array.prototype.slice.call(arguments)","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/aheckmann/sliced"},"keywords":["arguments","slice","array"],"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"license":"MIT","devDependencies":{"mocha":"1.5.0","benchmark":"~1.0.0"},"_id":"sliced@0.0.3","dist":{"shasum":"4f0bac2171eb17162c3ba6df81f5cf040f7c7e50","size":3296,"noattachment":false,"key":"/sliced/-/sliced-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/sliced/download/sliced-0.0.3.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{},"publish_time":1348942637300,"_cnpm_publish_time":1348942637300,"_hasShrinkwrap":false},"0.0.2":{"name":"sliced","version":"0.0.2","description":"A faster Node.js alternative to Array.prototype.slice.call(arguments)","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/aheckmann/sliced"},"keywords":["arguments","slice","array"],"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"license":"MIT","devDependencies":{"mocha":"1.5.0","benchmark":"~1.0.0"},"_id":"sliced@0.0.2","dist":{"shasum":"a46d8d2539aedd4e27de400df8a535876938f40a","size":2788,"noattachment":false,"key":"/sliced/-/sliced-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/sliced/download/sliced-0.0.2.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{},"publish_time":1348941040783,"_cnpm_publish_time":1348941040783,"_hasShrinkwrap":false},"0.0.1":{"name":"sliced","version":"0.0.1","description":"A faster alternative to Array.prototype.slice.call","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/aheckmann/sliced"},"keywords":["arguments","slice","array"],"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"license":"MIT","devDependencies":{"mocha":"1.5.0","benchmark":"~1.0.0"},"_id":"sliced@0.0.1","dist":{"shasum":"ac8f479b38bf31b01bbbecf8092814351f471cf5","size":2546,"noattachment":false,"key":"/sliced/-/sliced-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sliced/download/sliced-0.0.1.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{},"publish_time":1348934119371,"_cnpm_publish_time":1348934119371,"_hasShrinkwrap":false}},"readme":"#sliced\n==========\n\nA faster alternative to `[].slice.call(arguments)`.\n\n[![Build Status](https://secure.travis-ci.org/aheckmann/sliced.png)](http://travis-ci.org/aheckmann/sliced)\n\nExample output from [benchmark.js](https://github.com/bestiejs/benchmark.js)\n\n    Array.prototype.slice.call x 1,401,820 ops/sec ±2.16% (90 runs sampled)\n    [].slice.call x 1,313,116 ops/sec ±2.04% (96 runs sampled)\n    cached slice.call x 10,297,910 ops/sec ±1.81% (96 runs sampled)\n    sliced x 19,906,019 ops/sec ±1.23% (89 runs sampled)\n    fastest is sliced\n\n    Array.prototype.slice.call(arguments, 1) x 1,373,238 ops/sec ±1.84% (95 runs sampled)\n    [].slice.call(arguments, 1) x 1,395,336 ops/sec ±1.36% (93 runs sampled)\n    cached slice.call(arguments, 1) x 9,926,018 ops/sec ±1.67% (92 runs sampled)\n    sliced(arguments, 1) x 20,747,990 ops/sec ±1.16% (93 runs sampled)\n    fastest is sliced(arguments, 1)\n\n    Array.prototype.slice.call(arguments, -1) x 1,319,908 ops/sec ±2.12% (91 runs sampled)\n    [].slice.call(arguments, -1) x 1,336,170 ops/sec ±1.33% (97 runs sampled)\n    cached slice.call(arguments, -1) x 10,078,718 ops/sec ±1.21% (98 runs sampled)\n    sliced(arguments, -1) x 20,471,474 ops/sec ±1.81% (92 runs sampled)\n    fastest is sliced(arguments, -1)\n\n    Array.prototype.slice.call(arguments, -2, -10) x 1,369,246 ops/sec ±1.68% (97 runs sampled)\n    [].slice.call(arguments, -2, -10) x 1,387,935 ops/sec ±1.70% (95 runs sampled)\n    cached slice.call(arguments, -2, -10) x 9,593,428 ops/sec ±1.23% (97 runs sampled)\n    sliced(arguments, -2, -10) x 23,178,931 ops/sec ±1.70% (92 runs sampled)\n    fastest is sliced(arguments, -2, -10)\n\n    Array.prototype.slice.call(arguments, -2, -1) x 1,441,300 ops/sec ±1.26% (98 runs sampled)\n    [].slice.call(arguments, -2, -1) x 1,410,326 ops/sec ±1.96% (93 runs sampled)\n    cached slice.call(arguments, -2, -1) x 9,854,419 ops/sec ±1.02% (97 runs sampled)\n    sliced(arguments, -2, -1) x 22,550,801 ops/sec ±1.86% (91 runs sampled)\n    fastest is sliced(arguments, -2, -1)\n\n_Benchmark  [source](https://github.com/aheckmann/sliced/blob/master/bench.js)._\n\n##Usage\n\n`sliced` accepts the same arguments as `Array#slice` so you can easily swap it out.\n\n```js\nfunction zing () {\n  var slow = [].slice.call(arguments, 1, 8);\n  var args = slice(arguments, 1, 8);\n\n  var slow = Array.prototype.slice.call(arguments);\n  var args = slice(arguments);\n  // etc\n}\n```\n\n## install\n\n    npm install sliced\n\n\n[LICENSE](https://github.com/aheckmann/sliced/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/aheckmann/sliced","bugs":{"url":"https://github.com/aheckmann/sliced/issues"},"license":"MIT"}