-
-
Save elsassph/0349110f73ff208f3f01 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.poop = function() { | |
this.pop(); | |
// return nothing, it's poop | |
} | |
Array.prototype.shit = function() { | |
this.shift(); | |
// return nothing, it's poop | |
} |
I will never use the .pop()
or the .shift()
methods again, without thinking of this. Thank you
From now, I will use this method to pop my array from my stomach
So pooping and shitting removes from different sides of the log?
If so then that's pretty incredible.
Perfect code.
Amazing π π π
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes you
.pop()
or.shift()
but don't care about the result... Feel no remorse!