UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

9 lines (8 loc) • 158 B
id: prefer-array-flat-map valid: - 'arr.flatMap(fn)' - 'arr.map(fn)' - 'arr.flat()' invalid: - 'arr.map(fn).flat()' - 'arr.map(x => [x, x]).flat()'