DEV Community

Discussion on: How to compare two arrays in javascript?

Collapse
 
nahinakbar profile image
Nahin Akbar

You can use the 'fast-deep-equal' library.
npmjs.com/package/fast-deep-equal

Collapse
 
pestrinmarco profile image
Marco Pestrin

for just 1 check is not good to use a library. A library have other functions that are included but not used