DEV Community

[Comment from a deleted post]
Collapse
 
ortonomy profile image
🅖🅡🅔🅖🅞🅡🅨 🅞🅡🅣🅞🅝

Hmmm, splice is fine...

Const _copy = x.slice()
_copy.splice(y, 1)
Return _copy

Concise, easy to understand, immutable.