DEV Community

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

Collapse
 
blackr1234 profile image
blackr1234

If order matters, don't sort them before converting to strings. Yeah of course you could loop them, or use utility libraries.