DEV Community

Discussion on: Simplest way to compare two numbers array in JS

Collapse
 
blackr1234 profile image
blackr1234 • Edited

I won't consider that a "hack" because as a Java developer I always write +"" instead of toString(), but I would consider stringifying the arrays and comparing them a hack for array comparison.

Thread Thread
 
0shuvo0 profile image
Shuvo

Owh nice to know