-
I really do think JS is still missing some simple stuff, like "are two arrays the same?". Don't do
JSON.stringify(a) == JSON.stringify(b)do this gomakethings.com/check-if-two-arrays-or-objects-are-equal-with-javascript/ (ChrisFerdinandi's article is thorough, just a bummer we have to be thorough instead ofArray.equal(a, b)