Simplest way to compare two numbers array in JS
In case of string we can simply use == or === to see if they are same but we can't use those to see in two arrays are similar or in other words they have same elements.
So this wont work.
const array1 = [1, 2, 3, 4, 5]
const array2 = [1, 2, 3, 4, 5]
...
abblog.hashnode.dev2 min read