Created
June 6, 2012 00:04
-
-
Save stoyan/2878985 to your computer and use it in GitHub Desktop.
version of Andrea's
This file contains 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
var isNativeFunction = function (f) { | |
try { | |
Function("return " + f.toString()); | |
return false; | |
} catch (_) { | |
return true; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so ... as summary, I would suggest this one