* 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)
| 11744 | * // => false |
| 11745 | */ |
| 11746 | function isFunction(value) { |
| 11747 | if (!isObject(value)) { |
| 11748 | return false; |
| 11749 | } |
| 11750 | // The use of `Object#toString` avoids issues with the `typeof` operator |
| 11751 | // in Safari 9 which returns 'object' for typed arrays and other constructors. |
| 11752 | var tag = baseGetTag(value); |
| 11753 | return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; |
| 11754 | } |
| 11755 | |
| 11756 | /** |
| 11757 | * Checks if `value` is an integer. |
no test coverage detected