[javascript] In Javascript, how do I check if an array has duplicate values?