摘要: ES 2023新特性速解 ES 2023新特性速解 一、新增数组方法 操作数组的方法 Array.prototype.toSorted(compareFn) //返回一个新数组,其中元素按升序排序,而不改变原始数组。 Array.prototype.toReversed() //返回一个新数组,该数组的元素顺序被反转,但不改 阅读全文
posted @ 2023-09-18 07:36 路西高辣 阅读(640) 评论(0) 推荐(2) 编辑