source: node_modules/es-toolkit/dist/predicate/isFunction.d.mts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 475 bytes
RevLine 
[a762898]1/**
2 * Checks if `value` is a function.
3 *
4 * @param {any} value The value to check.
5 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
6 *
7 * @example
8 * isFunction(Array.prototype.slice); // true
9 * isFunction(async function () {}); // true
10 * isFunction(function* () {}); // true
11 * isFunction(Proxy); // true
12 * isFunction(Int8Array); // true
13 */
14declare function isFunction(value: any): value is (...args: any[]) => any;
15
16export { isFunction };
Note: See TracBrowser for help on using the repository browser.