杨小事er
Results
3
comments of
杨小事er
> ### 想看各位大佬的最佳操作,我就简陋的写了一下。 > ```js > const nums1 = [1, 2, 3, 5, 7, 8, 10]; > function simplifyStr(num) { > var result = []; > var temp = num[0]...
`indexOf` 可以换成 `includes` includes 用的比较算法和Set内置的是一样的SameValueZero
图破了。。。