UNPKG

@putout/plugin-convert-concat-to-flat

Version:

putout plugin adds ability to convert concat to flat

10 lines (6 loc) 215 B
'use strict'; module.exports.report = () => '"flat" should be used instead of "concat"'; module.exports.replace = () => ({ '[].concat.apply([], __a)': '__a.flat()', '[].concat(...__a)': '__a.flat()', });