{"name":"@putout/plugin-apply-is-array","version":"3.0.1","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/master/packages/plugin-apply-is-array#readme","main":"lib/apply-is-array.js","commitType":"colon","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-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":"02441fac6cc0a0ea55c602331eaca41a15d395cf","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-is-array@3.0.1","_nodeVersion":"18.12.1","_npmVersion":"9.1.3","dist":{"integrity":"sha512-wM3ETPGnY4rvlnlYyx41LiiV6GGhrFXAoLClLjET5uWkAYEtL8vnn9c50aWSLOb23/PCOY35qRxCrAkJc/YFOQ==","shasum":"6663c85048164de4b9dcb8dd844b686d65898e08","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-is-array/download/@putout/plugin-apply-is-array-3.0.1.tgz","fileCount":4,"unpackedSize":4162,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHM+N7eaGxBfIZTGd6MN70m9CjWSE3hHYiOlECtanhl4AiEAkdC5/O4neRAKRYy55aG3S6xQzEteBKAhxKKGojSZYiA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjt/2wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZ1g//R1O2OHZdtbc24ZXIexMQaEgk92OCuKxR8QJNuv+kFPw4xFOr\r\nXfrxPQnIDQQBS9sYhpNAjZ/S4PdEMfQuWAeZpqJxgBWIFKW27Wk0hGIk+jXK\r\nAWU46OVZd6JFjLFYyFJ9bb1dsHNaTSaVBPV3aSlFNkSEL9cYQIJQQwO2qSec\r\ncm0R2BLNS0GhbQSF3kcKSN1AEBFXOtejL6E/HqoTNTFXOuZtHe21SQPPcKn8\r\nHhahdIpgTmHC+GzTwHctPs0OpoPAAV4pPxnFcYi7anvSk2JJAA19qFkNVsbU\r\nbIn/0sPiytr16GuEIqmnEnb9V7feok075CowHw5v+fkBjqDBR0WPVl3W+l8C\r\nJ/dlqpZNB9oqiwB61FN+xUJk2WYYnvL0z+xIWQYMglNlLaowgnpStoqGsvqF\r\n4ACzQFpB/z5X036FRg5kCbdb3REDIMPDNbMstuUT/W7VdG9jWrFoAlCkPc19\r\ndv2NSDyVmy5hwRBzYoFEFSb39RbVyLu63SKrqafqxdAh5DJlJJpjS2G5awL6\r\nBO7ckNb2DuPOElt/qq6RpRyvqXBqahicO3C75TaXjlGyXJnq3Wpm/eYwRo+t\r\nnOxf2GboMeYT50W3nZletfhZHjDnP/sQ2iQtXz8UkfJN/W35lE0IsEN3KkcA\r\nnvD3nVo99h1oR7w+4R3LiL1hlKVhBaylzOw=\r\n=2Yjo\r\n-----END PGP SIGNATURE-----\r\n","size":2064,"noattachment":false,"key":"/@putout/plugin-apply-is-array/-/@putout/plugin-apply-is-array-3.0.1.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.1_1673002416329_0.1953521125067681"},"_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":1673002416477,"_cnpm_publish_time":1673002416477,"dist-tags":{"latest":"3.0.2"}}