{"_id":"babel-plugin-array-includes","_rev":"11-59f0b90f1ea80069f732f728508bb96d","name":"babel-plugin-array-includes","description":"Replaces `arr.includes(val)' with `arr.indexOf(val) >= 0`.","dist-tags":{"latest":"2.0.3"},"versions":{"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","tarball":"https://registry.npmjs.org/babel-plugin-array-includes/-/babel-plugin-array-includes-1.0.1.tgz","integrity":"sha512-1mm2TKuH76CnlZ8T2SJsLGHyPwht/et58/yy6HFxOBzj94qtxhCctbKL766CKimtiaRneE788f+rxZrN0tlIxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvk+NoP+PecZbXaxqO+iqtGvlbUc3J/yQtJPWC2JHijgIhALiv4kjoZ5wAyxG63Vwgw9rku5kqrBKCP36N4KrehC7s"}]}},"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","tarball":"https://registry.npmjs.org/babel-plugin-array-includes/-/babel-plugin-array-includes-1.1.0.tgz","integrity":"sha512-E3F+XIbyThhVGwHqx7YZhTFqdnhuWNYg564/zT26KALa5vElHExQ+cLGlvm488TQUByj4jjaOupMYBhDjqXWxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGS85WpCRQSlO6JYBKuoWolhvG8Fhlzv41rxlE19BM4ZAiAV/7Sh8LKBLEmUOqAbKm959BrFZyluTATr4mJ6/QZFkw=="}]}},"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","tarball":"https://registry.npmjs.org/babel-plugin-array-includes/-/babel-plugin-array-includes-1.1.1.tgz","integrity":"sha512-bPvmOdoZhtQQaL7dFNI8widMdmrvxFSAqeNHAGm6Gyky61jdtxSp7sAEOV++5ck7HyLdp81AuHc7u5kvpILlGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMLuhwXyyxxURUpIFYm7LCz0laqZtkK/D890vF1sXa1wIhALXT76jkZ13SFyEvYZda+oxT0hhJd0sK4RW2Kk5PZJvY"}]}},"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","tarball":"https://registry.npmjs.org/babel-plugin-array-includes/-/babel-plugin-array-includes-2.0.1.tgz","integrity":"sha512-Vt48/coxEE1741a8e7o80LhWPgTW/S6gTsBZO/zgruNHWUsRYTloAtwdmve+Qx4VCn0lP6Bgc+WsE34DnPaBpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDTh/7nxPG8IoEmKwzZLGMkgWoNNAN4Fjr2b3MehVPJCAiEAgIXmjq9i1LSk7KNOVmS+Bi2LO6HhDHJyHnkLvMMgl4I="}]}},"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","tarball":"https://registry.npmjs.org/babel-plugin-array-includes/-/babel-plugin-array-includes-2.0.2.tgz","integrity":"sha512-g5qbGucWtOnSmkfSw4+rBcWvyzvOnfISSSOszSf7fDFWNMjyDZEAqRkc0Pd0SgspNAgGryvhAN4YBFl8yUppJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2bUgFxByKNpdp/h4iDuf7SAjsWFHh4D09yzA3uXwRggIgPMksrol+8gZaQQeqk6vE7CaerIxmkCG1cKXCH7eTy6k="}]}},"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","tarball":"https://registry.npmjs.org/babel-plugin-array-includes/-/babel-plugin-array-includes-2.0.3.tgz","integrity":"sha512-sCOF2ST61Vlnss4IRn/X84crwJyzq0f/3z0voJd4XZ2izIUX2h9AO5L+F4CJ/7na3d9xRWDsaS0EfPTg8kJsqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcY7FpYB5Q6Xm40M1iEG/9Du7ZjVLR4f4W1nDT88ajrAIgTSNVLLSGmPzKeMJxDToDskY4Tgypu6HGRLW2nMmW/FE="}]}}},"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","maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"time":{"modified":"2022-06-13T04:00:31.506Z","created":"2015-06-24T14:41:53.678Z","1.0.1":"2015-06-24T14:41:53.678Z","1.1.0":"2015-06-24T16:01:31.356Z","1.1.1":"2015-06-24T16:07:26.673Z","2.0.1":"2015-12-18T06:55:06.938Z","2.0.2":"2015-12-18T06:57:33.656Z","2.0.3":"2016-01-27T13:47:36.009Z"},"homepage":"https://github.com/stoeffel/babel-plugin-array-includes#readme","keywords":["babel","babel-plugin","array","includes","polyfill"],"repository":{"type":"git","url":"git+https://github.com/stoeffel/babel-plugin-array-includes.git"},"author":{"name":"Christoph Hermann"},"bugs":{"url":"https://github.com/stoeffel/babel-plugin-array-includes/issues"},"license":"MIT","readmeFilename":"README.md","users":{"hugojosefson":true,"dkannan":true,"shakakira":true}}