Is there a way to compare arrays by value
For example,
> [0]===[0]
false
> JSON.stringify([0])===JSON.stringify([0])
true
> 0===0
true
Why is this not true [0]===[0]
but 0===0
is true?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Is there a way to compare arrays by value
For example,
> [0]===[0]
false
> JSON.stringify([0])===JSON.stringify([0])
true
> 0===0
true
Why is this not true [0]===[0]
but 0===0
is true?