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

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