const arr = [1,1,3]; const a2 = [...new Set(arr)]; // [1,3]
https://twitter.com/_ericelliott/status/832065642987524096