8 lines
203 B
Plaintext
8 lines
203 B
Plaintext
/**
|
|
* Returns true if the object is a function.
|
|
* @param value The value to check
|
|
*/
|
|
export function isFunction(value: any): value is (...args: any[]) => any {
|
|
return typeof value === 'function';
|
|
}
|