console.log(Array.from(new Set([1, 2, 3, 3, 4, 4]))) //[1,2,3,4] console.log([...new Set([1, 2, 3, 3, 4, 4])]) //[1,2,3,4]
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8