After a long time, a functional version of the splice()
method is finally available and it's called toSpliced()
!
The signature is exactly the same as splice()
but it returns a new array with some elements removed and/or replaced at a given index, without changing the original array.
I wrote an article about it on my blog!
Top comments (0)