Skip to content

Instantly share code, notes, and snippets.

@arn-e
Created November 12, 2012 07:34
Show Gist options
  • Save arn-e/4058003 to your computer and use it in GitHub Desktop.
Save arn-e/4058003 to your computer and use it in GitHub Desktop.
JS Array Comparison
> myArray = [1,2,3,4,5]
[ 1, 2, 3, 4, 5 ]
> mySecondArray = [1,2,3,4,5]
[ 1, 2, 3, 4, 5 ]
> myArray === mySecondArray;
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment