mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 06:47:57 +00:00
21 lines
459 B
JavaScript
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';
|
|
}
|