{"_id":"array-initial","_rev":"78251","name":"array-initial","description":"Get all but the last element or last n elements of an array.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"time":{"modified":"2021-06-03T10:25:07.000Z","created":"2014-12-12T10:48:57.612Z","1.1.0":"2017-12-05T21:50:42.510Z","1.0.1":"2017-08-02T20:43:46.868Z","1.0.0":"2014-12-12T10:48:57.612Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/array-initial.git"},"versions":{"1.1.0":{"name":"array-initial","description":"Get all but the last element or last n elements of an array.","version":"1.1.0","homepage":"https://github.com/jonschlinkert/array-initial","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/array-initial.git"},"bugs":{"url":"https://github.com/jonschlinkert/array-initial/issues"},"license":"MIT","main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"^2.0.0","should":"^11.2.1"},"dependencies":{"array-slice":"^1.0.0","is-number":"^4.0.0"},"keywords":["array","fast","first","initial","javascript","js","last","rest","util","utility","utils"],"gitHead":"2698ecd882914f04a3eb0d2277e61158b271e161","_id":"array-initial@1.1.0","_shasum":"2fa74b26739371c3947bd7a7adc73be334b3d795","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"2fa74b26739371c3947bd7a7adc73be334b3d795","size":2339,"noattachment":false,"key":"/array-initial/-/array-initial-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-initial/download/array-initial-1.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-initial-1.1.0.tgz_1512510642418_0.28039158787578344"},"directories":{},"publish_time":1512510642510,"_hasShrinkwrap":false,"_cnpm_publish_time":1512510642510},"1.0.1":{"name":"array-initial","description":"Get all but the last element or last n elements of an array.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/array-initial","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/array-initial.git"},"bugs":{"url":"https://github.com/jonschlinkert/array-initial/issues"},"license":"MIT","main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^11.2.1"},"dependencies":{"array-slice":"^1.0.0","is-number":"^3.0.0"},"keywords":["array","fast","first","initial","javascript","js","last","rest","util","utility","utils"],"gitHead":"e66f263359b48700a4aead4ea43599e5d0285267","_id":"array-initial@1.0.1","_shasum":"86122222a29c1ed42347f6334111afa40f8b20ec","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"86122222a29c1ed42347f6334111afa40f8b20ec","size":2331,"noattachment":false,"key":"/array-initial/-/array-initial-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-initial/download/array-initial-1.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-initial-1.0.1.tgz_1501706626783_0.21693921997211874"},"directories":{},"publish_time":1501706626868,"_cnpm_publish_time":1501706626868,"_hasShrinkwrap":false},"1.0.0":{"name":"array-initial","description":"Get all but the last element or last n elements of an array.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/array-initial","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/array-initial.git"},"bugs":{"url":"https://github.com/jonschlinkert/array-initial/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/array-initial/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.3.1"},"dependencies":{"array-slice":"^0.2.2","is-number":"^0.1.1"},"keywords":["array","fast","first","initial","javascript","js","last","rest","util","utility","utils"],"_id":"array-initial@1.0.0","_shasum":"09b13c58d56a050342e777ab6ffce595b108dad9","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"09b13c58d56a050342e777ab6ffce595b108dad9","size":2268,"noattachment":false,"key":"/array-initial/-/array-initial-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-initial/download/array-initial-1.0.0.tgz"},"directories":{},"publish_time":1418381337612,"_cnpm_publish_time":1418381337612,"_hasShrinkwrap":false}},"readme":"# array-initial [![NPM version](https://badge.fury.io/js/array-initial.svg)](http://badge.fury.io/js/array-initial)\n\n> Get all but the last element or last n elements of an array.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i array-initial --save\n```\n\n## Usage\n\n```js\nvar initial = require('array-initial');\n\ninitial(['a', 'b', 'c', 'd', 'e', 'f']);\n//=> ['a', 'b', 'c', 'd', 'e']\n\ninitial(['a', 'b', 'c', 'd', 'e', 'f'], 1);\n//=> ['a', 'b', 'c', 'd', 'e']\n\ninitial(['a', 'b', 'c', 'd', 'e', 'f'], 2);\n//=> ['a', 'b', 'c', 'd']\n```\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2014 Jon Schlinkert  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb](https://github.com/assemble/verb) on December 12, 2014. To update, run `npm i -g verb && verb`._\n","_attachments":{},"homepage":"https://github.com/jonschlinkert/array-initial","bugs":{"url":"https://github.com/jonschlinkert/array-initial/issues"},"license":"MIT"}