{"_id":"babel-plugin-array-includes","_rev":"199566","name":"babel-plugin-array-includes","description":"Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.","dist-tags":{"latest":"2.0.3"},"maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"time":{"modified":"2023-03-20T08:17:21.000Z","created":"2015-06-24T14:41:53.678Z","2.0.3":"2016-01-27T13:47:36.009Z","2.0.2":"2015-12-18T06:57:33.656Z","2.0.1":"2015-12-18T06:55:06.938Z","1.1.1":"2015-06-24T16:07:26.673Z","1.1.0":"2015-06-24T16:01:31.356Z","1.0.1":"2015-06-24T14:41:53.678Z"},"users":{},"author":{"name":"Christoph Hermann"},"repository":{"type":"git","url":"git+https://github.com/stoeffel/babel-plugin-array-includes.git"},"versions":{"2.0.3":{"name":"babel-plugin-array-includes","version":"2.0.3","description":"Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.","author":{"name":"Christoph Hermann"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stoeffel/babel-plugin-array-includes.git"},"main":"lib/index.js","devDependencies":{"babel-cli":"^6.3.15","babel-preset-es2015":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","mocha":"^2.3.4"},"scripts":{"build":"babel -D src -d lib","test":"mocha","prepublish":"npm run build","patch-release":"npm version patch && npm publish && git push --follow-tags","minor-release":"npm version minor && npm publish && git push --follow-tags","major-release":"npm version major && npm publish && git push --follow-tags"},"keywords":["babel","babel-plugin","array","includes","polyfill"],"gitHead":"821cbf980e96ac9a7fc2fa373b43cba0121baf46","bugs":{"url":"https://github.com/stoeffel/babel-plugin-array-includes/issues"},"homepage":"https://github.com/stoeffel/babel-plugin-array-includes#readme","_id":"babel-plugin-array-includes@2.0.3","_shasum":"cf5452e81c7b803fb7959f1045ac88e2ec28ff76","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"schtoeffel","email":"schtoeffel@gmail.com"},"maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"dist":{"shasum":"cf5452e81c7b803fb7959f1045ac88e2ec28ff76","size":2268,"noattachment":false,"key":"/babel-plugin-array-includes/-/babel-plugin-array-includes-2.0.3.tgz","tarball":"http://name.csiicloud.com:7001/babel-plugin-array-includes/download/babel-plugin-array-includes-2.0.3.tgz"},"directories":{},"publish_time":1453902456009,"_hasShrinkwrap":false,"_cnpm_publish_time":1453902456009,"_cnpmcore_publish_time":"2021-12-16T19:19:07.948Z"},"2.0.2":{"name":"babel-plugin-array-includes","version":"2.0.2","description":"Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.","author":{"name":"Christoph Hermann"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stoeffel/babel-plugin-array-includes.git"},"peerDependencies":{"babel-core":">=6.3.0"},"main":"lib/index.js","devDependencies":{"babel-cli":"^6.3.15","babel-preset-es2015":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","mocha":"^2.3.4"},"scripts":{"build":"babel -D src -d lib","test":"mocha","prepublish":"npm run build","patch-release":"npm version patch && npm publish && git push --follow-tags","minor-release":"npm version minor && npm publish && git push --follow-tags","major-release":"npm version major && npm publish && git push --follow-tags"},"keywords":["babel","babel-plugin","array","includes","polyfill"],"gitHead":"232772e104c4f1393db4a7ebad75419af6b8967b","bugs":{"url":"https://github.com/stoeffel/babel-plugin-array-includes/issues"},"homepage":"https://github.com/stoeffel/babel-plugin-array-includes#readme","_id":"babel-plugin-array-includes@2.0.2","_shasum":"f114bef73220f4b494c8413869a0a82074abf9d6","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"schtoeffel","email":"schtoeffel@gmail.com"},"maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"dist":{"shasum":"f114bef73220f4b494c8413869a0a82074abf9d6","size":2273,"noattachment":false,"key":"/babel-plugin-array-includes/-/babel-plugin-array-includes-2.0.2.tgz","tarball":"http://name.csiicloud.com:7001/babel-plugin-array-includes/download/babel-plugin-array-includes-2.0.2.tgz"},"directories":{},"publish_time":1450421853656,"_hasShrinkwrap":false,"_cnpm_publish_time":1450421853656,"_cnpmcore_publish_time":"2021-12-16T19:19:08.183Z"},"2.0.1":{"name":"babel-plugin-array-includes","version":"2.0.1","description":"Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.","author":{"name":"Christoph Hermann"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stoeffel/babel-plugin-array-includes.git"},"peerDependencies":{"babel-core":">=6.3.0"},"main":"lib/index.js","devDependencies":{"babel-cli":"^6.3.15","babel-preset-es2015":"^6.3.13","babel-register":"^6.3.13","chai":"^3.4.1","mocha":"^2.3.4"},"scripts":{"build":"babel -D src -d lib","test":"mocha","prepublish":"npm run build","patch-release":"npm version patch && npm publish && git push --follow-tags","minor-release":"npm version minor && npm publish && git push --follow-tags","major-release":"npm version major && npm publish && git push --follow-tags"},"keywords":["babel","babel-plugin","array","includes","polyfill"],"gitHead":"b23ab538315de1b539d025c5498fb51d369bd4cd","bugs":{"url":"https://github.com/stoeffel/babel-plugin-array-includes/issues"},"homepage":"https://github.com/stoeffel/babel-plugin-array-includes#readme","_id":"babel-plugin-array-includes@2.0.1","_shasum":"8505e39e97b3963221279e612ed9d283017198eb","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"schtoeffel","email":"schtoeffel@gmail.com"},"maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"dist":{"shasum":"8505e39e97b3963221279e612ed9d283017198eb","size":2331,"noattachment":false,"key":"/babel-plugin-array-includes/-/babel-plugin-array-includes-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/babel-plugin-array-includes/download/babel-plugin-array-includes-2.0.1.tgz"},"directories":{},"publish_time":1450421706938,"_hasShrinkwrap":false,"_cnpm_publish_time":1450421706938,"_cnpmcore_publish_time":"2021-12-16T19:19:08.392Z"},"1.1.1":{"name":"babel-plugin-array-includes","version":"1.1.1","description":"Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.","author":{"name":"Christoph Hermann"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stoeffel/babel-plugin-array-includes.git"},"peerDependencies":{"babel-core":">=5.2.0"},"main":"lib/index.js","devDependencies":{"babel":"^5.6.0"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test"},"keywords":["babel","babel-plugin","array","includes","polyfill"],"gitHead":"3e9e3d967e8b4a4b4756e8d6c3575d42ace1f2ee","bugs":{"url":"https://github.com/stoeffel/babel-plugin-array-includes/issues"},"homepage":"https://github.com/stoeffel/babel-plugin-array-includes#readme","_id":"babel-plugin-array-includes@1.1.1","_shasum":"6d51e2391c32989395d9b89a8a04fc75419405cc","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"schtoeffel","email":"schtoeffel@gmail.com"},"maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"dist":{"shasum":"6d51e2391c32989395d9b89a8a04fc75419405cc","size":1964,"noattachment":false,"key":"/babel-plugin-array-includes/-/babel-plugin-array-includes-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/babel-plugin-array-includes/download/babel-plugin-array-includes-1.1.1.tgz"},"directories":{},"publish_time":1435162046673,"_hasShrinkwrap":false,"_cnpm_publish_time":1435162046673,"_cnpmcore_publish_time":"2021-12-16T19:19:08.577Z"},"1.1.0":{"name":"babel-plugin-array-includes","version":"1.1.0","description":"Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.","author":{"name":"Christoph Hermann"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stoeffel/babel-plugin-array-includes.git"},"peerDependencies":{"babel-core":">=5.2.0"},"main":"lib/index.js","devDependencies":{"babel":"^5.6.0"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test"},"keywords":["babel","babel-plugin","array","includes","polyfill"],"gitHead":"c50e4dd2f89749ce09838cbe5013272ab50e36eb","bugs":{"url":"https://github.com/stoeffel/babel-plugin-array-includes/issues"},"homepage":"https://github.com/stoeffel/babel-plugin-array-includes#readme","_id":"babel-plugin-array-includes@1.1.0","_shasum":"3dcbd6a905776caf9835526dbb4cf55719da99e9","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"schtoeffel","email":"schtoeffel@gmail.com"},"maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"dist":{"shasum":"3dcbd6a905776caf9835526dbb4cf55719da99e9","size":1954,"noattachment":false,"key":"/babel-plugin-array-includes/-/babel-plugin-array-includes-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/babel-plugin-array-includes/download/babel-plugin-array-includes-1.1.0.tgz"},"directories":{},"publish_time":1435161691356,"_hasShrinkwrap":false,"_cnpm_publish_time":1435161691356,"_cnpmcore_publish_time":"2021-12-16T19:19:08.786Z"},"1.0.1":{"name":"babel-plugin-array-includes","version":"1.0.1","description":"Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.","author":{"name":"Christoph Hermann"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stoeffel/babel-plugin-array-includes.git"},"peerDependencies":{"babel-core":">=5.2.0"},"main":"lib/index.js","devDependencies":{"babel":"^5.6.0"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test"},"keywords":["babel","babel-plugin","array","includes","polyfill"],"gitHead":"6fd9f3e6a0a9bdcd926e27d171dc0eaf0d253c1a","bugs":{"url":"https://github.com/stoeffel/babel-plugin-array-includes/issues"},"homepage":"https://github.com/stoeffel/babel-plugin-array-includes#readme","_id":"babel-plugin-array-includes@1.0.1","_shasum":"0cf4f2a773cbb4d08395f921a127ee226e1c0a53","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"schtoeffel","email":"schtoeffel@gmail.com"},"maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"dist":{"shasum":"0cf4f2a773cbb4d08395f921a127ee226e1c0a53","size":1741,"noattachment":false,"key":"/babel-plugin-array-includes/-/babel-plugin-array-includes-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/babel-plugin-array-includes/download/babel-plugin-array-includes-1.0.1.tgz"},"directories":{},"publish_time":1435156913678,"_hasShrinkwrap":false,"_cnpm_publish_time":1435156913678,"_cnpmcore_publish_time":"2021-12-16T19:19:09.013Z"}},"readme":"# babel-plugin-array-includes\n\n> Replaces `arr.includes(val)` with `arr.indexOf(val) >= 0`.\n\nThanks to [@sebmck](https://github.com/sebmck) for the help.\n\n## Example\n\n**In**\n\n```javascript\n[1, 2, 3, 5, 8, 13].includes(4);\n```\n\n**Out**\n\n```javascript\n\"use strict\";\n\n[1, 2, 3, 5, 8, 13].indexOf(4) >= 0;\n```\n\n## Pitfalls\n\nThis doesn't work:\n\n**In**\n\n```js\nfunction foo(arr) {\n  return arr.includes('foo');\n}\n```\n\n**Out**\n\n```js\nfunction foo(arr) {\n  return arr.includes('foo'); // still includes\n}\n```\n\n## Installation\n\n```sh\n$ npm install babel-plugin-array-includes\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"array-includes\"]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins array-includes script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"array-includes\"]\n});\n```\n","_attachments":{},"homepage":"https://github.com/stoeffel/babel-plugin-array-includes#readme","bugs":{"url":"https://github.com/stoeffel/babel-plugin-array-includes/issues"},"license":"MIT"}