|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
475 bytes
|
| Line | |
|---|
| 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 | */
|
|---|
| 14 | declare function isFunction(value: any): value is (...args: any[]) => any;
|
|---|
| 15 |
|
|---|
| 16 | export { isFunction };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.