DEV Community

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

Collapse
 
virtualghostmck profile image
virtualghostmck

If a2 has more elements than a1, then this algo fails.

Collapse
 
ksengine profile image
Kavindu Santhusa

Thanks, Now it's upadated.