Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

rest parameters

const arr = [1, 2, 3];

let [x, ...z] =arr;
console.log(z);
console.log(x);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #rest #parameters
ADD COMMENT
Topic
Name
6+3 =