Last active
March 26, 2018 22:04
-
-
Save lacymorrow/c94e907b7e2c391ecdf3c48fc80b3754 to your computer and use it in GitHub Desktop.
Returns `true` if running in a Node process
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
function isNode () { | |
return Object.prototype.toString.call( typeof process !== 'undefined' ? process : 0 ) === '[object process]' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment