summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash/internal/baseIsFunction.js
blob: cd92db30f32a277e4c64deaf5111422eec0766b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * The base implementation of `_.isFunction` without support for environments
 * with incorrect `typeof` results.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
 */
function baseIsFunction(value) {
  // Avoid a Chakra JIT bug in compatibility modes of IE 11.
  // See https://github.com/jashkenas/underscore/issues/1621 for more details.
  return typeof value == 'function' || false;
}

module.exports = baseIsFunction;