Created
August 5, 2016 02:05
-
-
Save FelipeJz/41e603678044eeb2a0f4cb53c51e9d8b to your computer and use it in GitHub Desktop.
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.remove = function(value) { | |
var idx = this.indexOf(value); | |
if (idx != -1) { | |
return this.splice(idx, 1); | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment