Is there any way to check if an array contains an array with specific values?
Like, I have this array
drawn[0] = [0,0]
Which I later want to check if still contains [0,0]
, so I'd do something like
drawn[0] == [0,0]
But this just returns a false
, why? And, more importantly, what should I do instead? Even if I try [0,0] == [0,0]
I get a false
in return?
Please note that the arrays won't always just be zeros...
Ps. I don't want to use any external libraries, so please keep it to plain ol' javascript