Distinct Elements Array Javascript Splice Method Javascript Compiler