{"name":"@putout/plugin-apply-is-array","version":"2.1.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":"1c19b6de815e5245bb5da3ad033b93e10bdf3965","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-is-array@2.1.0","_nodeVersion":"16.8.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-688LSZFHzWcNhSeJLQCNLYNC7OMXhX3zoFpAjZdiAnrm1Q7gGhirX+r4lQOdqFzC7xUlPwjgBp9n/0QHlSgJOw==","shasum":"096053b05f65e0af15c6bbd6368bbe266a349717","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-is-array/download/@putout/plugin-apply-is-array-2.1.0.tgz","fileCount":4,"unpackedSize":3729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2XmaCRA9TVsSAnZWagAA5NEP/1O6SkUvjrtShVHUy5bN\ng1HrGCD24I9bQjObcqUAdyS7U2gpkEbrwtn7C6br0uHrvSe5DJBfIfrCDx+N\nxfV1yLPHTStLXSWb8wOOM0ZAKRR+F/8viD0kLerAlaYllxjeZpLryufrKu5S\nosB7JWwMEcUpYcVCV3Gh4PmdqMC3r2GkamV4OXzN7u2wvo0bnShc/iFli/PI\noq3f3LsOH2eNDptYjk28VVn624M2o8cmnTMLCR3Lv2xdxenJ5mB7l9Plj1k1\nKk72tTwNIpc8OMOtPfJEZIiaW+ajuaTQ++kSJPvY7nSYPqDYui/VVDzUSOe6\nhGi7D1K6BQJnUL+CfA5o9rgLPMnAgThC4j5oZw3Gu7S2PNmiS2ZJWLuS7HfD\n4QCM1hAHPMfZgxkgusWZ6zateteyQrl6Zbg4wnduT/5yCkPmKxcpmDbWw1zP\n0u1Otmcw4cU7JkzmPFgM25w46YAFw9UIlxb3HBO1l2UQZaWbsTaKI7fOQLbV\n3TStYdsVaW1KIg2UOvFk5hmcCfygRjAHVwKV9skMi1HludnAyHOKLzHPcN/A\ndl4FSJIgTsTduzCdu811ubBGxtUV6B4ksdVoZSdZTf6poP8vcJpSPqjOsYRG\nigS8FpKZVJtPzF9X+3Mh7A+hmgWBYeW0x2Duq0JMWK7rEW7WQqwTqnoulhnF\nrPTd\r\n=pPzu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAi7EdpEB2yJisUCmmnN8xJQniEStYe6+FyBaZ1sjKWVAiAn/NIq0gvk9yAoWMIt+beCYWnrF/b7NAYO4EJqJaWiqw=="}],"size":1829,"noattachment":false,"key":"/@putout/plugin-apply-is-array/-/@putout/plugin-apply-is-array-2.1.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.1.0_1636214913896_0.8632622618907013"},"_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":1636214914083,"_cnpm_publish_time":1636214914083,"dist-tags":{"latest":"3.0.2"}}