📜  将元素推送到数组到第一位 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:53.853000             🧑  作者: Mango

代码示例3
//Add element to front of array
var numbers = ["2", "3", "4", "5"];
numbers.unshift("1");
//Result - numbers: ["1", "2", "3", "4", "5"]