2 * Checks if `value` is a host object in IE < 9.
5 * @param {*} value The value to check.
6 * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
8 function isHostObject(value) {
9 // Many host objects are `Object` objects that can coerce to strings
10 // despite having improperly defined `toString` methods.
12 if (value != null && typeof value.toString != 'function') {
14 result = !!(value + '');
20 module.exports = isHostObject;