0
Slice vs splice in c#?
2 odpowiedzi
+ 5
Anamarija Bosnjak Your question is unclear. I'm not aware of these methods existing for C#.
Are you referring to Javascript? If so, then Arushi Singhania pretty much covered the differences.
You can also review this link for a more indepth comparison in Javascript.
https://stackoverflow.com/a/48471808
+ 4
Slicing means extracting a specific part of string or array based on Ur choice.
The splice adds/removes items to/from an array, and returns the removed item(s).This method changes the original array.