0

Splicing or slicing?

Do you think slicing or splicing function is the same as delete or remove particular array element or delete element at particular index? It pretty much like returning new array in the determined range. Not deleting.

13th Apr 2024, 6:15 AM
Oliver Pasaribu
3 ответов
+ 1
Oliver Pasaribu , Please add a tag for the computer language, and share the link to a code example, because you could be talking about a lot of different syntaxes that work differently.
13th Apr 2024, 7:16 AM
Rain
Rain - avatar
0
Ok friend.
13th Apr 2024, 4:03 PM
Oliver Pasaribu
0
Oliver Pasaribu In JavaScript, they serve different purpose, one alters the original array, and the other does not.
13th Apr 2024, 5:02 PM
IAmSupreme
IAmSupreme - avatar