{"name":"@putout/plugin-apply-is-array","version":"2.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/tree/master/packages/plugin-apply-is-array","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":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^11.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=21"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"2c1dc18277e867e8f15afa3bc92e35a2a9c6b12e","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-is-array@2.0.0","_nodeVersion":"16.8.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-FcQXz8/EEz5VoPM2NafUjqsmr+oMzHvXP6n3nqvQb3nyRipEQ5Uv4wlQSgPTWil3McOJm2QGA1CDGd4boHWw9Q==","shasum":"da7bce5cbb8586b1302640b2d4b4732fdb9e14b3","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-is-array/download/@putout/plugin-apply-is-array-2.0.0.tgz","fileCount":4,"unpackedSize":3334,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGOR/4UN/P+7EkFP3W3E2j+36kDWUDyP0pUmecQgHjQAIhALGQnqAS79qQJMPXyges4wei9z3NgXVNKGJ7DE/majph"}],"size":1709,"noattachment":false,"key":"/@putout/plugin-apply-is-array/-/@putout/plugin-apply-is-array-2.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_2.0.0_1635874926838_0.9275432596070146"},"_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":1635874926995,"_cnpm_publish_time":1635874926995,"dist-tags":{"latest":"3.0.2"}}