Created
October 31, 2017 04:20
-
-
Save sjkillen/264b64cf9d3d93d7042a218e4faabe8b to your computer and use it in GitHub Desktop.
Hidden javascript builtin functions
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
(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