Horje
determine if array has duplicates lodash Code Example
determine if array has duplicates lodash
function hasDuplicates(a) {
  return _.uniq(a).length !== a.length; 
}

var a = [1,2,1,3,4,5];
var b = [1,2,3,4,5,6];

document.write(hasDuplicates(a), ',',hasDuplicates(b));




Javascript

Related
pdf.js get current page number Code Example pdf.js get current page number Code Example
javascript regex stop at first match Code Example javascript regex stop at first match Code Example
primeng BrowserAnimationsModule Code Example primeng BrowserAnimationsModule Code Example
jquery ajax send custom data after serialize Code Example jquery ajax send custom data after serialize Code Example
Reactjs function exemple useEffect Code Example Reactjs function exemple useEffect Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7