Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js extend list

// If your browser does not support ECMAScript 6, you can use .apply instead:

a.push.apply(a, b)
// Or perhaps, if you think it's clearer:

Array.prototype.push.apply(a,b)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #extend #list
ADD COMMENT
Topic
Name
1+4 =