DEV Community

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

Collapse
 
ilumin profile image
Teerasak Vichadee

I think it would be greate if we sort the array inside compare function, so we can sure that it will compare with the right position