Skip to content

Instantly share code, notes, and snippets.

@elsassph
Forked from edankwan/poop.js
Last active August 20, 2025 20:59
Array.prototype.poop = function() {
this.pop();
// return nothing, it's poop
}
Array.prototype.shit = function() {
this.shift();
// return nothing, it's poop
}
@elvonkh
Copy link

elvonkh commented Dec 10, 2020

From now, I will use this method to pop my array from my stomach

@PongoEngine
Copy link

So pooping and shitting removes from different sides of the log?
If so then that's pretty incredible.

@Muffle10
Copy link

Muffle10 commented Jun 2, 2021

Perfect code.

@FISHARMNIC
Copy link

Amazing πŸ™ πŸ™ πŸ™

@ZakomakotheZBH
Copy link

Hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment