Created
November 22, 2014 18:57
-
-
Save eriwen/5157b7ef517c49a4c3a1 to your computer and use it in GitHub Desktop.
Return true if called from context within strict mode.
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
/** | |
* Return true if called from context within strict mode. | |
*/ | |
function isStrictMode() { | |
return (eval("var __temp = null"), (typeof __temp === "undefined")); // jshint ignore:line | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment