* Checks if `value` is a host object in IE < 9. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
(value)
| 74 | * @returns {boolean} Returns `true` if `value` is a host object, else `false`. |
| 75 | */ |
| 76 | function isHostObject(value) { |
| 77 | // Many host objects are `Object` objects that can coerce to strings |
| 78 | // despite having improperly defined `toString` methods. |
| 79 | var result = false; |
| 80 | if (value != null && typeof value.toString != 'function') { |
| 81 | try { |
| 82 | result = !!(value + ''); |
| 83 | } catch (e) {} |
| 84 | } |
| 85 | return result; |
| 86 | } |
| 87 | |
| 88 | /** Used for built-in method references. */ |
| 89 | var arrayProto = Array.prototype, |
no outgoing calls
no test coverage detected
searching dependent graphs…