Unique Elements From Array Javascript Mdn Map Function In Python