Files
pezkuwi-common/packages/util/cjs/is/function.js
T

21 lines
459 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFunction = isFunction;
/**
* @name isFunction
* @summary Tests for a `function`.
* @description
* Checks to see if the input value is a JavaScript function.
* @example
* <BR>
*
* ```javascript
* import { isFunction } from '@pezkuwi/util';
*
* isFunction(() => false); // => true
* ```
*/
function isFunction(value) {
return typeof value === 'function';
}