JSPM

@putout/plugin-convert-array-copy-to-slice

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6859
  • Score
    100M100P100Q165912F
  • License MIT

putout plugin adds ability to convert array copy to slice

Package Exports

  • @putout/plugin-convert-array-copy-to-slice

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@putout/plugin-convert-array-copy-to-slice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

putout-plugin-convert-array-copy-to-slice NPM version Dependency Status

putout plugin convert spread to Array.from.

Install

npm i @putout/plugin-convert-array-copy-to-slice

Rule

{
    "rules": {
        "convert-array-copy-to-slice": true
    }
}

❌ Incorrect code example

const places = [
    ...runPlugins(),
];

✅ Correct code Example

const places = runPlugins().slice();

License

MIT