{"name":"@putout/plugin-apply-is-array","version":"3.0.0","type":"commonjs","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#readme","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":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","lerna":"^4.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"125e5f3be1970980096c59c1d81fe3ce7984b2f5","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-is-array@3.0.0","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-JQqkiYV0nRVmXYszF/WeIcRldRCBBthII5wOov6IFr5FtRxtVYKpEp4Bn95Jz1X1+uvGhICzmB/emZBoj+XjEA==","shasum":"c4566ae52c13625efe5fd9e574213b02c29179a8","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-is-array/download/@putout/plugin-apply-is-array-3.0.0.tgz","fileCount":4,"unpackedSize":4141,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDQ3heD+nddjKC9f3W+WqRfWapfr0kePYPf8SwpiRIJAIhAI8/HGxBFYjkfwDcWvdX7kVMUHmNjKPxTanorlRkHiYb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicYjUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHoQ/+PtR53YFDOdIvONPuUCZGy8I4U+E2Sf7nQ6WLWStHMJXVs9bJ\r\noc6pBBKf179XSvxQxmk5285RYcpqwhvYmj1BPgX3VW/LaPqQxW2i382lrQNn\r\nEvkVEMhnPDNEwIe+AJPUEBvgjP0LvuXjUq+G8MFtxLakiqBvXJonp+aMbjlE\r\nHU+RuPLgM7+Xj17Frmnn8qq6gH1z//nT08Axp4wzN9GK/G9ctjyCKbi0MAYF\r\nyOJt0+cmLDf0ByZP463mqq2QlPf9hgt3MQ/omydPyc0OTQwBo/JOfopV5ymF\r\npc6V8cMKhLWtDOvxQ5OP2PaEYd0FqyjFzyjInUYXPp4YJ/FRbt+UETEBsEBM\r\n3VLQQy1Larfd+4GwHoMelG9xaThTBZgIAReTjn0tF/wpRermalG9zo+Ux6sn\r\ny4XJ1OLu2Q8FMsIYUQc4h4ykuJ404T87K5DLPshuKltluX3HHN8JFuKStBAG\r\nZeRLSOOKsDeIMfpKCJx1wN2iSJuu9BDWWMK0yjlcSD7iYdiSNlWGqeOmlQL/\r\nMbSsI/eOMkU9grRSW0znWxSFU0OsTEeq2wFSVWctqNJZxRCdogT00oUy3PJ+\r\nwqfPrqA17xWs1G3LyCA1cFcnj4yYIdTTtTJY8PluZhcc9Buk8FLghhXMreYu\r\n2Wy5voDTOQRIWf1SauEr9EbywMCGw3GkV58=\r\n=IyeO\r\n-----END PGP SIGNATURE-----\r\n","size":2058,"noattachment":false,"key":"/@putout/plugin-apply-is-array/-/@putout/plugin-apply-is-array-3.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_3.0.0_1651607764180_0.22248142870650334"},"_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":1651607764306,"_cnpm_publish_time":1651607764306,"dist-tags":{"latest":"3.0.2"}}