slice(), splice()

단단한어린이·2022년 4월 6일
0

Javascript

목록 보기
7/17
post-thumbnail
post-custom-banner

Array.prototype.slice()

The slice() method returns a shallow copy of a portion of an array into a new array object selected from start to end (end not included) where start and end represent the index of items in that array. The original array will not be modified.


Array.prototype.splice()

The splice() method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place

profile
Footprints in Coding
post-custom-banner

0개의 댓글