第 11 题:将数组扁平化并去除其中重复数据,最终得到一个升序且不重复的数组

Author: zpzxgcrCreated Feb 12, 2019Updated Jul 30, 2025
Labels编程题

`Array.from(new Set(arr.flat(Infinity))).sort((a,b)=>{ return a-b})`

Source: Advanced-Frontend/Daily-Interview-Question