UNPKG

pi-lens

Version:

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

10 lines (9 loc) • 215 B
id: no-array-reverse-mutation-js valid: - 'const b = a.toReversed()' invalid: - 'a.reverse()' - 'arr.reverse()' - 'const b = [...a].reverse()' - 'const b = a.slice().reverse()' - 'arr.slice().reverse()'