Jquery SEND TO START OF ARRAY
snippet in javascript

Jquery SEND TO START OF ARRAY

user2469

var colors = ['red','blue','green'];

/*// PUSH TO FRONT OF ARRAY
---------------------------*/
colors.unshift('yellow');
// colors = ['yellow, 'red', 'blue', 'green']