java-script:slice-vs-splice-methods
Differences
This shows you the differences between two versions of the page.
java-script:slice-vs-splice-methods [2023/08/11 17:02] – created odefta | java-script:slice-vs-splice-methods [2023/08/11 17:03] (current) – odefta | ||
---|---|---|---|
Line 49: | Line 49: | ||
< | < | ||
- | slice is used to extract parts of an array without modifying it, while splice can add, remove, or replace elements within the array, changing its content in the process. | + | **slice** is used to extract parts of an array without modifying it, while **splice** can add, remove, or replace elements within the array, changing its content in the process. |
</ | </ | ||
- | |||
- | |||
- | |||
- | |||
- |
java-script/slice-vs-splice-methods.1691762567.txt.gz · Last modified: 2023/08/11 17:02 by odefta