How should I make a function that loops through an array, and checks if any elements are equal
Example:
[a, b, c, d] //false
[a, b, a, d] //true
EDIT:
I want to use it with nested arrays, like so:
const a = [[1,2,3],[4,5,6]] //false
const b = [[1,2,3],[4,5,1]] //true
EDIT again: I want the nested arrays to be the exact same
const a = [[1,2],[4,5]] //false
const b = [[1,2],[1,2]] //true
const c = [[1,2][3,4][1,2]] //true