Skip to content

Instantly share code, notes, and snippets.

@moeproblems
Created September 28, 2011 23:19
Show Gist options
  • Save moeproblems/1249553 to your computer and use it in GitHub Desktop.
Save moeproblems/1249553 to your computer and use it in GitHub Desktop.
var areIdentical = function(arr1, arr2) {
if (arr1.length != arr2.length) { return false; }
arr1.forEach(function(val, index) {
if (!arr2[index] || arr2[index] !== val) { return false; }
});
return true;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment