Last active
February 10, 2024 15:49
-
-
Save benhatsor/3f0723141e8715848ce59cdd81e776ef to your computer and use it in GitHub Desktop.
Compare two arrays (minified)
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
Array.prototype.equals=function(a){for(var b=0;b<this.length;b++)if(this[b]!=a[b])return!1;return!0}; | |
[0,1].equals([0,1]) // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment