Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

foreach javascript

var items = ["item1", "item2", "item3"]
var copie = [];

items.forEach(function(item){
  copie.push(item);
});
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #foreach #javascript
ADD COMMENT
Topic
Name
2+8 =