Created
July 2, 2016 22:30
-
-
Save codewithtyler/ab671604e25c34d3f99a5bc93c71be3d to your computer and use it in GitHub Desktop.
JavaScript Extension Methods
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.contains = function( value ) { | |
return this.indexOf( value ) > -1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment