🌈 搜索
📅  最后修改于: 2022-03-11 14:55:29.579000             🧑  作者: Mango
let numbers = [4, 10, 5, 1, 3]; numbers.sort((a, b) => a - b); console.log(numbers); // [1, 2, 3, 4, 5]