DEV Community

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

Collapse
 
coderduck profile image
duccanhole

but if we compare [1,'2',3] and [1,2,3]; I expect false, and result is true

Collapse
 
0shuvo0 profile image
Shuvo

yes that's why in the post title I said numbers array