Skip to content

Instantly share code, notes, and snippets.

@acarballo-monotype
Created November 15, 2017 15:21
Show Gist options
  • Save acarballo-monotype/55610564955305a75276f063f2049c37 to your computer and use it in GitHub Desktop.
Save acarballo-monotype/55610564955305a75276f063f2049c37 to your computer and use it in GitHub Desktop.
Standard Helpers
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