Skip to content

Instantly share code, notes, and snippets.

@crongro
Created February 2, 2015 01:04
Show Gist options
  • Save crongro/f0d51b80b0b589761d15 to your computer and use it in GitHub Desktop.
Save crongro/f0d51b80b0b589761d15 to your computer and use it in GitHub Desktop.
compare Array using Join Function
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