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

17 lines
432 B
TypeScript
Raw Normal View History

2025-01-13 02:49:20 +00:00
// @ts-nocheck
/**
*
* @param val
* @returns true false
*/
// #ifdef APP-IOS || APP-ANDROID
export const isFunction = (val: any):boolean => typeof val == 'function';
// #endif
// #ifndef APP-IOS || APP-ANDROID
export const isFunction = (val: unknown): val is Function =>
typeof val === 'function';
// #endif