Skip to content

Instantly share code, notes, and snippets.

@lucasgameiro
Forked from julsfelic/gist:3884147
Last active December 9, 2015 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasgameiro/4320863 to your computer and use it in GitHub Desktop.
Save lucasgameiro/4320863 to your computer and use it in GitHub Desktop.
Crockford isHostMethod
function isHostMethod(object, property) {
var t = typeof object[property];
return t=='function' ||
(!!(t=='object' && object[property])) ||
t=='unknown';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment