// package
array-initial
type: "module"
// preferences
// replacements (1)
snippet::array-slice-exclude-last-n
Simple or drop-in replacementThis package is no longer necessary. You can get all but the last n elements using `array.slice`
// example
array.slice(0, array.length - n);