合同小程序前端代码仓库
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.

19 lines
476 B

  1. // @ts-nocheck
  2. /**
  3. *
  4. * @param val
  5. * @returns true false
  6. */
  7. // #ifndef UNI-APP-X && APP
  8. export const isObject = (val : unknown) : val is Record<any, any> =>
  9. val !== null && typeof val === 'object';
  10. // #endif
  11. // #ifdef UNI-APP-X && APP
  12. export const isObject = (val : any | null) : boolean =>{
  13. return val !== null && typeof val === 'object';
  14. }
  15. // #endif