How to compare arrays in JavaScript
array1 === array2 ?
To compare arrays in JavaScript, don't assume you can check whether the contents of two JavaScript arrays are the same with === or == (the strict equality or equality operators). You can't.
const array1 = [1, 2, 3];
const array2 =...
blog.petefowler.dev3 min read