Created
November 15, 2017 15:21
-
-
Save acarballo-monotype/55610564955305a75276f063f2049c37 to your computer and use it in GitHub Desktop.
Standard Helpers
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
const toString = Object.prototype.toString; | |
function isFunction (obj) { | |
return toString.call(obj) === '[object Function]'; | |
} | |
function isString (obj) { | |
return toString.call(obj) === '[object String]'; | |
} | |
function isUndefined (obj) { | |
return obj === void 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment