Created
February 2, 2015 01:04
-
-
Save crongro/f0d51b80b0b589761d15 to your computer and use it in GitHub Desktop.
compare Array using Join Function
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
var a = [1,2,3,4,5]; | |
var b = [1,2,3,4,5]; | |
a === b //false | |
a.join('_') === b.join('_'); //true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment