Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

unpack array into variables javascript

var yourArr = [1, 2, 3]

[one, , three] = yourArray // 2 is ignored
// one == 1 && three == 3
 
PREVIOUS NEXT
Tagged: #unpack #array #variables #javascript
ADD COMMENT
Topic
Name
5+6 =