Answers for "check if array has unique values javascript"

6

check if array has unique values javascript

const allEqual = arr => arr.every(v => v === arr[0]);
allEqual([1,1,1,1]);  // true
Posted by: Guest on May-27-2020

Code answers related to "check if array has unique values javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language