cxc-szcx-uniapp/uni_modules/lime-shared/isFunction/index.ts

17 lines
420 B
TypeScript
Raw Normal View History

2024-09-14 02:26:50 +00:00
// @ts-nocheck
/**
*
* @param val
* @returns true false
*/
2025-02-11 01:34:29 +00:00
// #ifdef UNI-APP-X && APP
2024-09-14 02:26:50 +00:00
export const isFunction = (val: any):boolean => typeof val == 'function';
// #endif
2025-02-11 01:34:29 +00:00
// #ifndef UNI-APP-X && APP
2024-09-14 02:26:50 +00:00
export const isFunction = (val: unknown): val is Function =>
typeof val === 'function';
// #endif