* 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 * * _.isFunction(_); * // => true * * _.isFun
(value)
| 880 | * // => false |
| 881 | */ |
| 882 | function isFunction(value) { |
| 883 | // The use of `Object#toString` avoids issues with the `typeof` operator |
| 884 | // in Safari 8-9 which returns 'object' for typed array and other constructors. |
| 885 | var tag = isObject(value) ? objectToString.call(value) : ''; |
| 886 | return tag == funcTag || tag == genTag; |
| 887 | } |
| 888 | |
| 889 | /** |
| 890 | * Checks if `value` is the |
no test coverage detected
searching dependent graphs…