* 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)
| 70 | * @returns {boolean} Returns `true` if `value` is a host object, else `false`. |
| 71 | */ |
| 72 | function isHostObject(value) { |
| 73 | // Many host objects are `Object` objects that can coerce to strings |
| 74 | // despite having improperly defined `toString` methods. |
| 75 | let result = false; |
| 76 | if (value != null && typeof value.toString != 'function') { |
| 77 | try { |
| 78 | result = !!(value + ''); |
| 79 | } catch (e) {} |
| 80 | } |
| 81 | return result; |
| 82 | } |
| 83 | |
| 84 | /** Used for built-in method references. */ |
| 85 | const arrayProto = Array.prototype, |
no outgoing calls
no test coverage detected
searching dependent graphs…