DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Copy an Array
let shallowCopy = fruits.slice() // this is how to make a copy // ["Strawberry", "Mango"]
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#Copy
#Array
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit