Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript copy array

var numbers = [1,2,3,4,5];
var newNumbers = Object.assign([], numbers);
Source by www.samanthaming.com #
 
PREVIOUS NEXT
Tagged: #javascript #copy #array
ADD COMMENT
Topic
Name
8+4 =