DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js slice
const arr=[1,2,3,4,5]; const slicedArr = arr.slice(1,4); // slicedArr = [2,3,4]
Source by dev.to #
PREVIOUS
NEXT
Tagged:
#js
#slice
ADD COMMENT
Topic
COMMENT
Name
6+8 =
Submit