{"name":"@putout/plugin-apply-is-array","version":"3.0.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply Array.isArray()","homepage":"http://github.com/coderaiser/putout/tree/v28.19.2/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":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f4ee7f73b7adb64ab47bb8d6f8fe8d5011ae033e","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-is-array@3.0.2","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"integrity":"sha512-a5MZuWebxiyxzaA+UsMCnRp4rmTngheN5jHn/5h3IRGRvnN2dfrOdOG3aNnZzHgJwk/NB8TPmz/dYdBy5MwPKA==","shasum":"e88e01a6d0eae159a96d2f3929c159d3eaf1bd8e","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-is-array/download/@putout/plugin-apply-is-array-3.0.2.tgz","fileCount":4,"unpackedSize":4187,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjkzAjzMB7dCeq84p/5/VEp3YvY3JhwtN9bHLU8+vbmgIgG3NWwqY1iW+Y3xcd8dz3+X8blOKPZG9YT8Bw2nS4bLw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC0ljACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDZQ/+LriKi8Qcsz4uNKoGw0Bj9zlPiDO3jtibWU3QIbSmdN3sBFij\r\nIDwJu4Ops3MC56R1Yyub36dOqWk/2M95CVei5knOW/FK3fuIYof2HYBnHdC6\r\nASnY8jBQjjA8ytM96Oapf4KypAc8z3qDqdY+ax/wfX0syI3APJIqPOd/j1ml\r\n/M2QCDWxhXyZVUrlcbMpcsods/BCicOECGB5c/3d2QixPkW2a4Oo3MzTi1Wo\r\npOYyVLDpzk2wuq+AoUoWgIFPsoSvUj5OOQLxacpNSdVO1+bdKWLm1f3yRl2i\r\nZLV4cbAKZPdUr32g7KV6zFCWaeiHrpLba9mGAMbR5giqbspL2+vDn6yuNjKo\r\nnMTQqQymi39VFvWpq95vfIU4V3z1dARbVNkBfqGiwutYe5subgncLmdYXypr\r\n/5U9L7QAAzy7+wSGsMFQTEnGtAABTgmujqjZC3h8FJHft/R94RGfJMkUw3qG\r\ny1RwYALhV7ImQHOLzDHgL08MV33cBUemxGont0/gwcZ3KOr0ZUS8ek27WOzt\r\nrSPuIiAVHag01W6UlT9YzC1pp1gfSHMFy35XoQ9rFVrFk8ZitUTEC6n13ug7\r\nUF2vGoltvs9t2N19JIIFq4elrSIV8d93lZxncGgma3v/JTtBQirgPleFFqY8\r\nr7hPf7Xh+hH2vXaS8u8WJitakSaEh2WYwbM=\r\n=7Q/r\r\n-----END PGP SIGNATURE-----\r\n","size":2078,"noattachment":false,"key":"/@putout/plugin-apply-is-array/-/@putout/plugin-apply-is-array-3.0.2.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.2_1678461283479_0.007799357031334386"},"_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":1678461283591,"_cnpm_publish_time":1678461283591,"dist-tags":{"latest":"3.0.2"}}