MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1const myArray = ['a', 1, 'a', 2, '1'];
2const unique = Array.from(new Set(myArray));
3console.log('Set:', unique);
4
5const doubled = Array.from(new Set([1, 2, 3]), x => x * 2);
6console.log('Set+map:', doubled);
7
8console.log('Array:', Array.from([10, 20, 30]));
9console.log('String:', Array.from("abc"));