MCPcopy Create free account
hub / github.com/Lemoncode/fonk / isFunction

Function isFunction

src/helpers/set.js:882–887  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

880 * // => false
881 */
882function 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

Callers 4

helpers.spec.tsFile · 0.90
baseIsNativeFunction · 0.70

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…