Created
November 13, 2018 16:26
-
-
Save devhero/6486c2f4d1f6fe3b44ccf1d15ab7a683 to your computer and use it in GitHub Desktop.
array compare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array1.length === array2.length && array1.sort().every(function(value, index) { return value === array2.sort()[index]}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment