Skip to content

Instantly share code, notes, and snippets.

@elsassph
Forked from edankwan/poop.js
Last active May 29, 2026 14:34
Show Gist options
  • Select an option

  • Save elsassph/0349110f73ff208f3f01 to your computer and use it in GitHub Desktop.

Select an option

Save elsassph/0349110f73ff208f3f01 to your computer and use it in GitHub Desktop.
Array.prototype.poop = function() {
this.pop();
// return nothing, it's poop
}
Array.prototype.shit = function() {
this.shift();
// return nothing, it's poop
}
@elsassph

Copy link
Copy Markdown
Author

Sometimes you .pop() or .shift() but don't care about the result... Feel no remorse!

@DavisDevelopment

Copy link
Copy Markdown

I will never use the .pop() or the .shift() methods again, without thinking of this. Thank you

@elvonkh

elvonkh commented Dec 10, 2020

Copy link
Copy Markdown

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

@PongoEngine

Copy link
Copy Markdown

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

@Muffle10

Muffle10 commented Jun 2, 2021

Copy link
Copy Markdown

Perfect code.

@FISHARMNIC

Copy link
Copy Markdown

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

@ZakomakotheZBH

Copy link
Copy Markdown

Hello

@milotek

milotek commented May 29, 2026

Copy link
Copy Markdown

Absolute perfection

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