code: function isHostMethod(object, property){
      var t = typeof object[property];
      return t == 'function' ||
      (!!(t == 'object' && object[property])) ||
      t == 'unknown';
  }
docs: http://peter.michaux.ca/articles/feature-detection-state-of-the-art-browser-scripting