{"name":"@putout/plugin-apply-is-array","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability use apply Array.isArray()","homepage":"http://github.com/coderaiser/putout","main":"lib/apply-is-array.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-apply","plugin","is-array"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^8.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=18"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-is-array@1.0.0","_nodeVersion":"16.6.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-v8hubKHLAK7+cbg74xacvrfCC+yM79e5kIVRpkrFoN+DgnRLX91Jk49AAzyusl4wmjgcyZInKHq527bhFhreww==","shasum":"513bbf6eda31c0302debbea7d452c3038dcda970","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-is-array/download/@putout/plugin-apply-is-array-1.0.0.tgz","fileCount":4,"unpackedSize":3391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEpglCRA9TVsSAnZWagAAjw0P/3utbHLOdrv6QMtjD2ap\niApNPDK8/va0TjtHQiikpSONuiKwCxGE4ykGojSWHAB1VpgpEo8DSL1pJvYZ\nfPsZfaL/GY2UD7/NU3HMVdrBigabaY6RPQVYnyGxA2dxijmnles45UeIgtz0\nJvI/FM5GeGMFq1l9uYsvyhHocimXfackQnn7geeSY4pdJm83YGmJaDfvJtOQ\nLT1DAUY99WdE5VgRaDpNoM6Q2Q84yp6yi0k4QgjkbIQ5nW1Xm1VaOtc8eAgp\nF2xqVOPJssTw2QBRqHwRJ/QTvtQmB93X41jG0kUFW/aahyPNWE+dXE8hr0j8\nuZslGB4yGkie19YcyA8kB5sVL8RgLhuNht/OvyFJQebJ4xGnasttsMd7bJHZ\niVqAkihCeAW0z2ynYxlSAOLAWFncqFNVXJE6STDbXHRZ1whPX/TGi4sVpmel\nsuAzQAXaNKk+Ox8UMahjmYuoxrfiXZbu7HM/T86k2IeHtlDqybYgy1ArUMq1\nUv8SagMQb61/X51bY4tFfpqykZqcbx9/CpVcAIG7SZ8wGzYdJFzamTD8trfB\ndkEk/LWFfJcs7bTPMcmYlhXEfveIHO1z9aWTxWuzJhNIY0EuukaVl/DUqJ9h\n1CiO1V2AilZgyYEcZ6f13H8vBAJ7/9Bpa+oVXjjY2R5NVqaRO7hDok6yGwIm\nly2z\r\n=tYnK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1Yf1w6c7SfAXxwVUsotlS1A/mj6vsi6yVivLtWaKTZAiA6mY1LTImXo2os3F1aG8D5MMXm3Lh37XoLyaEQf96FHA=="}],"size":1688,"noattachment":false,"key":"/@putout/plugin-apply-is-array/-/@putout/plugin-apply-is-array-1.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-apply-is-array_1.0.0_1628608549228_0.8054469653636673"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-apply-is-array [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-is-array.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-is-array \"npm\"\n\n> The `Array.isArray()` method determines whether the passed value is an `Array`.\n> When checking for `Array` instance, `Array.isArray()` is preferred over `instanceof` because it works through `iframes`.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply `Array.isArray()`. Fits good with [@putout/plugin-declare](https://github.com/coderaiser/putout/tree/master/packages/plugin-declare#readme). Merged to [`@putout/plugin-types`](https://www.npmjs.com/package/@putout/plugin-types).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-is-array\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-is-array\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nx instanceof Array;\n```\n\n## ✅ Example of correct code\n\n```js\nconst {isArray} = Array;\nisArray(x);\n```\n\nIn case of using `inline` option:\n\n```json\n{\n    \"rules\": {\n        \"apply-is-array\": [\"on\", {\n            \"inline\": true\n        }]\n    }\n}\n```\n\n`Array.isArray` will be inlined:\n\n```js\nArray.isArray(x);\n```\n\n## License\n\nMIT\n","publish_time":1628608549466,"_cnpm_publish_time":1628608549466,"dist-tags":{"latest":"3.0.2"}}