How does the JavaScript slice() method work?
The slice() method** returns the selected items** of an array, but it won't mutate the original array. That's a difference with the splice() method.
slice() receives two parameters:
The starting index to remove
The end index (it won't be removed)
...
blog.mariobarcelo.dev1 min read