Skip to content

Instantly share code, notes, and snippets.

@sjkillen
Created October 31, 2017 04:20
Show Gist options
  • Save sjkillen/264b64cf9d3d93d7042a218e4faabe8b to your computer and use it in GitHub Desktop.
Save sjkillen/264b64cf9d3d93d7042a218e4faabe8b to your computer and use it in GitHub Desktop.
Hidden javascript builtin functions
(Always returns undefined function and does nothing)
a=Function.prototype
a("hello world")
(edited)
(Identity function, returns the first argument you give it)
a=Function.prototype.call.bind([][Symbol.iterator]().__proto__.__proto__[Symbol.iterator])
a("hello world") === "hello world"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment