合同小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
420 B

  1. // @ts-nocheck
  2. /**
  3. *
  4. * @param val
  5. * @returns true false
  6. */
  7. // #ifdef UNI-APP-X && APP
  8. export const isFunction = (val: any):boolean => typeof val == 'function';
  9. // #endif
  10. // #ifndef UNI-APP-X && APP
  11. export const isFunction = (val: unknown): val is Function =>
  12. typeof val === 'function';
  13. // #endif