Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

move item to end of array for of

 for(var x in data)data[x].name == "other" ? data.push( data.splice(x,1)[0] ) : 0;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #move #item #array
ADD COMMENT
Topic
Name
6+2 =