📅  最后修改于: 2022-03-11 15:03:22.029000             🧑  作者: Mango
var colors = ['red','blue','green'];
/*// PUSH TO FRONT OF ARRAY
---------------------------*/
colors.unshift('yellow');
// colors = ['yellow, 'red', 'blue', 'green']