{"name":"@putout/plugin-apply-to-sorted","version":"0.0.0-stage","_id":"@putout/plugin-apply-to-sorted@0.0.0-stage","stub":true,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"dist":{"shasum":"e3b16e6ba1c6f01a827931bc21043c6ec382c139","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-to-sorted/download/@putout/plugin-apply-to-sorted-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-KX4wAArYeV+UDKo6dZKXq0BYYbHmuLxBMbVvkGsp5Cvt2AvDEX2TExAco81FEsVUlpxEr+zTQgixX+UG7mrbcA==","signatures":[{"sig":"MEQCIHM5soVxOmSQNtL0uUSKeM+ltvcDbpAlUSAhhj9jA4v/AiB4shLThu2bB70IyUZmi/ycJcYf/bEOmf9TDbEz+MbaEg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":352,"size":375,"noattachment":false,"key":"/@putout/plugin-apply-to-sorted/-/@putout/plugin-apply-to-sorted-0.0.0-stage.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{},"readme":"# @putout/plugin-apply-to-sorted [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-to-sorted.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-to-sorted \"npm\"\n\n> The `toSorted()` method of `Array` instances is the copying version of the `sort()` method. It returns a new array with the elements sorted in ascending order.\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply `toSorted`.\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/d830f5f671b78d6040c6a24862a8777f/bdb7291787f18dc15c86e7bcd685774905640859).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-to-sorted\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-to-sorted\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\n[...a].sort((a, b) => a - b);\n```\n\n## ✅ Example of correct code\n\n```js\na.toSorted((a, b) => a - b);\n```\n\n## License\n\nMIT\n","publish_time":1791651810829,"_cnpm_publish_time":1791651810829,"dist-tags":{"latest":"1.0.1"}}