Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

/learn ES6: Use the Spread Operator to Evaluate Arrays In-Place

const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
let arr2;

arr2 = [...arr1];
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Use #Spread #Operator #Evaluate #Arrays
ADD COMMENT
Topic
Name
6+6 =