{"_id":"make-iterator","_rev":"29735","name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:04:41.000Z","created":"2014-09-30T23:29:53.297Z","2.0.0":"2018-04-08T14:18:29.167Z","1.0.1":"2018-04-08T14:13:52.058Z","1.0.0":"2017-02-27T00:15:00.249Z","0.3.1":"2017-02-27T00:14:47.288Z","0.3.0":"2016-07-11T10:53:45.624Z","0.2.1":"2016-07-11T10:52:41.522Z","0.2.0":"2015-07-18T02:35:39.543Z","0.1.1":"2014-10-09T18:55:17.133Z","0.1.0":"2014-09-30T23:29:53.297Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"versions":{"2.0.0":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^6.0.2"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["arr","array","contains","for-own","forown","forOwn","function","iterate","iterator","make"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["breakdance","micromatch","snapdragon"]},"lint":{"reflinks":true}},"gitHead":"5dfb4e9e53b3fd9e5e3023fcd9a9861d5546a7c4","_id":"make-iterator@2.0.0","_npmVersion":"5.8.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"7077b554e417f4f70f9abba7b880c57baae54baa","size":3190,"noattachment":false,"key":"/make-iterator/-/make-iterator-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-2.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-iterator_2.0.0_1523197109089_0.6777231604262415"},"_hasShrinkwrap":false,"publish_time":1523197109167,"_cnpm_publish_time":1523197109167},"1.0.1":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^6.0.2"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["arr","array","contains","for-own","forown","forOwn","function","iterate","iterator","make"],"verb":{"related":{"list":["any","arr-filter","arr-map","array-every","collection-map","utils"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator"]},"gitHead":"6594daa503c8dc20d608250bd7aaf6a4dae01a7b","_id":"make-iterator@1.0.1","_npmVersion":"5.8.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"29b33f312aa8f547c4a5e490f56afcec99133ad6","size":3340,"noattachment":false,"key":"/make-iterator/-/make-iterator-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-1.0.1.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-iterator_1.0.1_1523196832009_0.14786368578262055"},"_hasShrinkwrap":false,"publish_time":1523196832058,"_cnpm_publish_time":1523196832058},"1.0.0":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^3.1.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["arr","array","contains","for-own","forown","forOwn","function","iterate","iterator","make"],"verb":{"related":{"list":["any","arr-filter","arr-map","array-every","collection-map","utils"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator"]},"gitHead":"c6c350132d53945e859ab2127c3ea26afb245f41","_id":"make-iterator@1.0.0","_shasum":"57bef5dc85d23923ba23767324d8e8f8f3d9694b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"57bef5dc85d23923ba23767324d8e8f8f3d9694b","size":3231,"noattachment":false,"key":"/make-iterator/-/make-iterator-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/make-iterator-1.0.0.tgz_1488154498196_0.8629201718140393"},"directories":{},"publish_time":1488154500249,"_cnpm_publish_time":1488154500249,"_hasShrinkwrap":false},"0.3.1":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^3.1.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["arr","array","contains","for-own","forown","forOwn","function","iterate","iterator","make"],"verb":{"related":{"list":["any","arr-filter","arr-map","array-every","collection-map","utils"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator"]},"gitHead":"c6c350132d53945e859ab2127c3ea26afb245f41","_id":"make-iterator@0.3.1","_shasum":"e1c6a532b546a27f13948a06f82509b33db98112","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e1c6a532b546a27f13948a06f82509b33db98112","size":3229,"noattachment":false,"key":"/make-iterator/-/make-iterator-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-0.3.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/make-iterator-0.3.1.tgz_1488154485325_0.8528085402213037"},"directories":{},"publish_time":1488154487288,"_cnpm_publish_time":1488154487288,"_hasShrinkwrap":false},"0.3.0":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^3.0.3"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":["arr","array","contains","for-own","forown","forOwn","function","iterate","iterator","make"],"verb":{"related":{"list":["any","arr-filter","arr-map","array-every","collection-map","utils"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb-readme-generator","verb"]},"gitHead":"8766baba63f8d1b6ecf80ccbd53754f41b553faa","_id":"make-iterator@0.3.0","_shasum":"da41f3a7aa2e584c2f153258b7d12317c2a84c6c","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"da41f3a7aa2e584c2f153258b7d12317c2a84c6c","size":2115,"noattachment":false,"key":"/make-iterator/-/make-iterator-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/make-iterator-0.3.0.tgz_1468234423308_0.11326679936610162"},"directories":{},"publish_time":1468234425624,"_cnpm_publish_time":1468234425624,"_hasShrinkwrap":false},"0.2.1":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^3.0.3"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":["arr","array","contains","for-own","forown","forOwn","function","iterate","iterator","make"],"verb":{"related":{"list":["any","arr-filter","arr-map","array-every","collection-map","utils"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb-readme-generator","verb"]},"gitHead":"b2cb82546d4618e18e4ff6f1a2d13f59d5ef39d4","_id":"make-iterator@0.2.1","_shasum":"a19c660132b54ae6d64f881ec14056c746dbe972","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a19c660132b54ae6d64f881ec14056c746dbe972","size":2114,"noattachment":false,"key":"/make-iterator/-/make-iterator-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-0.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/make-iterator-0.2.1.tgz_1468234358884_0.6453356349375099"},"directories":{},"publish_time":1468234361522,"_cnpm_publish_time":1468234361522,"_hasShrinkwrap":false},"0.2.0":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"dependencies":{"for-own":"^0.1.3"},"keywords":["arr","array","iterate","iterator","contains","for-own","forOwn","forown","function"],"verb":{"related":{"list":["any","arr-filter","arr-map","array-every","collection-map","utils"]}},"gitHead":"e6a9fe24d57fa610384e4e97eaa053d9cc1073b1","_id":"make-iterator@0.2.0","_shasum":"22392c93381611d8eb405beff93b80d4cbdb9b33","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"22392c93381611d8eb405beff93b80d4cbdb9b33","size":2707,"noattachment":false,"key":"/make-iterator/-/make-iterator-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-0.2.0.tgz"},"directories":{},"publish_time":1437186939543,"_cnpm_publish_time":1437186939543,"_hasShrinkwrap":false},"0.1.1":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/make-iterator/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"keywords":["arr","array","iterate","iterator","contains","for-own","forOwn","forown","function"],"dependencies":{"for-own":"^0.1.1"},"_id":"make-iterator@0.1.1","_shasum":"873d27b8198a465a81483b6f5d16da4e863ecf5b","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"873d27b8198a465a81483b6f5d16da4e863ecf5b","size":3588,"noattachment":false,"key":"/make-iterator/-/make-iterator-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-0.1.1.tgz"},"directories":{},"publish_time":1412880917133,"_cnpm_publish_time":1412880917133,"_hasShrinkwrap":false},"0.1.0":{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/make-iterator/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"keywords":["arr","array","iterate","iterator","contains","for-own","forOwn","forown","function"],"dependencies":{"for-own":"^0.1.1"},"_id":"make-iterator@0.1.0","_shasum":"2f03e331de9b0d3452d7289060bf144b77623ba9","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2f03e331de9b0d3452d7289060bf144b77623ba9","size":3593,"noattachment":false,"key":"/make-iterator/-/make-iterator-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/make-iterator/download/make-iterator-0.1.0.tgz"},"directories":{},"publish_time":1412119793297,"_cnpm_publish_time":1412119793297,"_hasShrinkwrap":false}},"readme":"# make-iterator [![NPM version](https://img.shields.io/npm/v/make-iterator.svg?style=flat)](https://www.npmjs.com/package/make-iterator) [![NPM monthly downloads](https://img.shields.io/npm/dm/make-iterator.svg?style=flat)](https://npmjs.org/package/make-iterator) [![NPM total downloads](https://img.shields.io/npm/dt/make-iterator.svg?style=flat)](https://npmjs.org/package/make-iterator) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/make-iterator.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/make-iterator)\n\n> Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save make-iterator\n```\n\nAlthough the code has materially changed, this was originally based on the\nmake iterator function in moutjs, and externalized to a module. Thanks to the\nmoutjs team for the inspiration.\n\nCopyright (c) 2012, 2013 moutjs team and contributors (http://moutjs.com)\n\n## Usage\n\n```js\nvar iterator = require('make-iterator');\n```\n\n**Regex**\n\n```js\nvar arr = ['a', 'b', 'c', 'd', 'e', 'f'];\nvar fn = iterator(/[a-c]/);\nconsole.log(arr.filter(fn));\n//=> ['a', 'b', 'c'];\n```\n\n**Objects**\n\n```js\nvar fn =  iterator({ a: 1, b: { c: 2 } });\n\nconsole.log(fn({ a: 1, b: { c: 2, d: 3 } }));\n//=> true\nconsole.log(fn({ a: 1, b: { c: 3 } }));\n//=> false\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [breakdance](https://www.npmjs.com/package/breakdance): Breakdance is a node.js library for converting HTML to markdown. Highly pluggable, flexible and easy… [more](http://breakdance.io) | [homepage](http://breakdance.io \"Breakdance is a node.js library for converting HTML to markdown. Highly pluggable, flexible and easy to use. It's time for your markup to get down.\")\n* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/micromatch/micromatch \"Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.\")\n* [snapdragon](https://www.npmjs.com/package/snapdragon): Easy-to-use plugin system for creating powerful, fast and versatile parsers and compilers, with built-in source-map… [more](https://github.com/here-be/snapdragon) | [homepage](https://github.com/here-be/snapdragon \"Easy-to-use plugin system for creating powerful, fast and versatile parsers and compilers, with built-in source-map support.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on April 08, 2018._","_attachments":{},"homepage":"https://github.com/jonschlinkert/make-iterator","bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT"}