摘要: 1. 获取数组的最小元素 const getSmallest = (arr) => arr.reduce((smallest, num) => Math.min(smallest, num)); const arr = [13, 7, 11, 3, 9, 15, 17]; console.log(g 阅读全文
posted @ 2022-12-28 10:39 假装学习 阅读(68) 评论(0) 推荐(0) 编辑