Last active
June 29, 2017 02:55
-
-
Save gomo/474b14bbf8955e0a20d56902eafd0fb8 to your computer and use it in GitHub Desktop.
A function in a plane object is the named function in nodejs (v6.10.2).
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
const obj = { | |
foobar: function(){} | |
} | |
obj.foobar.toString() == (function(){}).toString() //false | |
obj.foobar.toString() == (function foobar(){}).toString() //true | |
obj.foobar.toString() //function foobar() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment