题解 | #查找重复元素#
查找重复元素
http://www.nowcoder.com/practice/871a468deecf453589ea261835d6b78b
```{"css":"","js":"function duplicates(arr) {\n newArr = arr.filter((el, i)=>arr.lastIndexOf(el) !== arr.indexOf(el))\nreturn Array.from(new Set(newArr))\n}","html":"","libs":[]}