{"_id":"pick-item","_rev":"8-c55f4006563a9ca3d3190760a13a4f57","name":"pick-item","description":"Given an array, pick a random element and return it.","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.0":{"name":"pick-item","version":"0.0.0","description":"Randomly sampling a item from an array.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bubkoo/pick-item.git"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com","url":"https://github.com/bubkoo"},"license":"MIT","bugs":{"url":"https://github.com/bubkoo/pick-item/issues"},"homepage":"https://github.com/bubkoo/pick-item#readme","gitHead":"3c1f71b9cbc1fd9fe949029206dc1502a29b82f8","_id":"pick-item@0.0.0","_shasum":"1f117e9ae9777ddfb7da4822c42b7e107a194e13","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"1f117e9ae9777ddfb7da4822c42b7e107a194e13","tarball":"https://registry.npmjs.org/pick-item/-/pick-item-0.0.0.tgz","integrity":"sha512-RBV9TX86cfg4R1EFUfnZJFffrKd4n+rEWZw9H9ilEHcL+k3gxnl74eqeQnvM7cq0cmK10fKG4RfptZU1oKSzFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7XT6reLLgkTQBol94YKchIPtNPGsB8eiLHv0THXazCAiEAluqEgSGi9l8KlIlXSqvXH9pz7jA+JW8DuOzWxb1jW6E="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pick-item-0.0.0.tgz_1460481161326_0.9463834359776229"}},"1.0.0":{"name":"pick-item","version":"1.0.0","description":"Randomly sampling a item from an array.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["pick","sampling","array","arr","item","items","array-like","shuffle","random","randomly","randomize","rand"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/bubkoo/pick-item.git"},"bugs":{"url":"https://github.com/bubkoo/pick-item/issues"},"homepage":"https://github.com/bubkoo/pick-item#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"is-array-like":"^1.1.0","random-index":"^1.0.0"},"gitHead":"2322432a5d172bddd52358d4ea6cf9f73158bc91","_id":"pick-item@1.0.0","_shasum":"f69dece9f4016c0a2307bd4d8eee1d6694284ad8","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"f69dece9f4016c0a2307bd4d8eee1d6694284ad8","tarball":"https://registry.npmjs.org/pick-item/-/pick-item-1.0.0.tgz","integrity":"sha512-b/wCqJW3BIEDRDZoQX7VArqQw6C9EYBVz0cz7FIGxzoI3jwFs0RhwvFRAvZbYJLUQrrldVD6DC7b9IqZkUutBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQS4kISdDNCsCU9Y9JOMeMO9wAQ4jOe/W8PsFGSQEnOAiB/zXKD80IdIpMm4AmvDT9v+RxXRVsTuQ09CKdIZg/9yQ=="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pick-item-1.0.0.tgz_1460613438683_0.19254022161476314"}},"1.0.1":{"name":"pick-item","version":"1.0.1","description":"Randomly sampling a item from an array.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["pick","sampling","array","arr","item","items","array-like","shuffle","random","randomly","randomize","rand"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/pick-item.git"},"bugs":{"url":"https://github.com/mock-end/pick-item/issues"},"homepage":"https://github.com/mock-end/pick-item#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"is-array-like":"^1.1.0","random-index":"^1.0.0"},"gitHead":"a22e6ef199069b70bf8adc6ac726015ff3fbc933","_id":"pick-item@1.0.1","_shasum":"9de805686b9d63eeb5564b0227d15c5ed56dc57b","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"9de805686b9d63eeb5564b0227d15c5ed56dc57b","tarball":"https://registry.npmjs.org/pick-item/-/pick-item-1.0.1.tgz","integrity":"sha512-1Z6zzMdYkPnQ8vQS9fAnz6QQ7K/sRZ62CemViTYjzjZj03CwheJOyPREeKGvSEof88O7OTmPJE5rdLojgSI+WQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDiJtbpqjGNZ9jSprEiF2VVbB83Z16pzKQZ/pBBlv7gQIgTzEClUupORmfKM54AvpNLzjB6rjHTQ1Imi/EIsSvR7Q="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pick-item-1.0.1.tgz_1460706411469_0.983102000085637"}},"1.0.2":{"name":"pick-item","version":"1.0.2","description":"Given an array, pick a random element and return it.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["pick","sampling","item","array","array-like","generator","generate","random","randomly","randomize","chance","test","dice","mock"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/pick-item.git"},"bugs":{"url":"https://github.com/mock-end/pick-item/issues"},"homepage":"https://github.com/mock-end/pick-item#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"is-array-like":"^1.1.0","random-index":"^1.0.1"},"gitHead":"0e4beafe3c30214784907e478baf5f8d83805b5a","_id":"pick-item@1.0.2","_shasum":"5de72ca3013daac1a920e069077e364bc1d69251","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"5de72ca3013daac1a920e069077e364bc1d69251","tarball":"https://registry.npmjs.org/pick-item/-/pick-item-1.0.2.tgz","integrity":"sha512-FblPoF4OSewAY/XX3qTEYV0U+SVkhMieKgzld21GHe+PDakNk44jQdt4ZK9L96l0X0fGmlzKPchuk+pmefq0kQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5Ai9b3Gazr0Ir+yy7dP4+WQIQDNF85BqbylzAHqOHnAiBsK3hdAxyOZc/met85pL1wukAhgYdHQQrWHqNdNW+PFw=="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pick-item-1.0.2.tgz_1461438909214_0.8016310643870384"}},"1.0.3":{"name":"pick-item","version":"1.0.3","description":"Given an array, pick a random element and return it.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["pick","sampling","item","array","array-like","generator","generate","random","randomly","randomize","chance","test","dice","mock"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/pick-item.git"},"bugs":{"url":"https://github.com/mock-end/pick-item/issues"},"homepage":"https://github.com/mock-end/pick-item#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"is-array-like":"^1.1.0","random-index":"^1.0.1"},"gitHead":"238acca7b9cd5bdc6b960371aec4fc13ec65068b","_id":"pick-item@1.0.3","_shasum":"a357ced92f2566d13abe51f8b62addb2e272be00","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"a357ced92f2566d13abe51f8b62addb2e272be00","tarball":"https://registry.npmjs.org/pick-item/-/pick-item-1.0.3.tgz","integrity":"sha512-uSUbjhLLPBQychK4KvpvWljx//i6wUmtzuMJjUamZItHWuzACPRHy10D0rw7fTPMWFcOZ3BnBqFN+pcUzzaJFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEc0KQ1WtSqmLsddOOGp4/QiJ2t1rgA3apGzTNSsXDD0AiEA7k/77i5R8Uz2RDzXDcymvgHbkSG32G7AfG7xY279O4k="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pick-item-1.0.3.tgz_1461474893645_0.7339834291487932"}},"1.0.4":{"name":"pick-item","version":"1.0.4","description":"Given an array, pick a random element and return it.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["pick","sampling","item","array","array-like","generator","generate","random","randomly","randomize","chance","test","dice","mock"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/pick-item.git"},"bugs":{"url":"https://github.com/mock-end/pick-item/issues"},"homepage":"https://github.com/mock-end/pick-item#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"is-array-like":"^1.1.0","random-index":"^1.0.4"},"gitHead":"d45c8512838a94c0f6312b46621f9cbaddcd1435","_id":"pick-item@1.0.4","_shasum":"0e06cafdb9b81eee1a93bce0df2dce604c9e9015","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"0e06cafdb9b81eee1a93bce0df2dce604c9e9015","tarball":"https://registry.npmjs.org/pick-item/-/pick-item-1.0.4.tgz","integrity":"sha512-SKx0hrhizZ2TAyvw8FBhEBQUhuzxPFRBZwSFhYZpxXs6AFOt4x5/hB+vudx10+Ilw3rr3QcF+KlkewkN1BjlPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDZi7If0EHTUfrGT38JKEv8ezERTr1eIAgYL1RlId1hAIhAIbMMe4ooygYuUfCJDV0Bt+7ik3U0wrLuiAtP1I/VnR6"}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pick-item-1.0.4.tgz_1461571263497_0.7849542165640742"}}},"readme":"# pick-item\n\n> Given an array, pick a random element and return it.\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/pick-item/blob/master/LICENSE)\n\n[![build:?](https://img.shields.io/travis/mock-end/pick-item/master.svg?style=flat-square)](https://travis-ci.org/mock-end/pick-item)\n[![coverage:?](https://img.shields.io/coveralls/mock-end/pick-item/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/pick-item)\n\n\n## Install\n\n```\n$ npm install --save pick-item \n```\n\n## Usage\n\n> For more use-cases see the [tests](https://github.com/mock-end/pick-item/blob/master/test/spec/index.js)\n\n```js\nvar pickItem = require('pick-item');\n\n// API\n// - pickItem(array);\n\npickItem([1, 2, 3]); // => 2\npickItem([1]);       // => 1\npickItem([]);        // => undefined\npickItem();          // => undefined\npickItem(null);      // => null\n```\n\n## Related\n\n- [pick-items](https://github.com/mock-end/pick-items) - Given an array, pick some random elements and return them in a new array. \n- [pick-prop](https://github.com/mock-end/pick-prop) - Given an object, pick a random property and return it.\n- [pick-props](https://github.com/mock-end/pick-props) - Given an object, pick some random properties and return them in an array.\n- [pick-key](https://github.com/mock-end/pick-key) - Given an object, pick a random key and return it.\n- [pick-keys](https://github.com/mock-end/pick-keys) - Given an object, pick some random keys and return them in an array.\n- [pick-pair](https://github.com/mock-end/pick-pair) - Given an object, pick a random key-value and return it in a new object.\n- [pick-pairs](https://github.com/mock-end/pick-pairs) - Given an object, pick some random key-values and return it in a new object.\n\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/mock-end/pick-item/issues/new).\n","maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"time":{"modified":"2022-06-23T22:33:57.090Z","created":"2016-04-12T17:12:44.810Z","0.0.0":"2016-04-12T17:12:44.810Z","1.0.0":"2016-04-14T05:57:20.350Z","1.0.1":"2016-04-15T07:46:52.134Z","1.0.2":"2016-04-23T19:15:12.686Z","1.0.3":"2016-04-24T05:14:56.851Z","1.0.4":"2016-04-25T08:01:04.031Z"},"homepage":"https://github.com/mock-end/pick-item#readme","repository":{"type":"git","url":"git+https://github.com/mock-end/pick-item.git"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"bugs":{"url":"https://github.com/mock-end/pick-item/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["pick","sampling","item","array","array-like","generator","generate","random","randomly","randomize","chance","test","dice","mock"]}