* Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.is
(value)
| 19366 | * // => false |
| 19367 | */ |
| 19368 | function isFunction(value) { |
| 19369 | if (!isObject(value)) { |
| 19370 | return false; |
| 19371 | } |
| 19372 | // The use of `Object#toString` avoids issues with the `typeof` operator |
| 19373 | // in Safari 9 which returns 'object' for typed arrays and other constructors. |
| 19374 | var tag = baseGetTag(value); |
| 19375 | return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; |
| 19376 | } |
| 19377 | |
| 19378 | /** |
| 19379 | * Checks if `value` is an integer. |
no test coverage detected