SmartParks_visitore/uni_modules/lime-shared/isObject/index.ts

20 lines
464 B
TypeScript
Raw Permalink Normal View History

2025-08-21 11:23:54 +08:00
// @ts-nocheck
/**
*
* @param val
* @returns true false
*/
// #ifndef APP-ANDROID
export const isObject = (val : unknown) : val is Record<any, any> =>
val !== null && typeof val === 'object';
// #endif
// #ifdef APP-ANDROID
export const isObject = (val : any | null) : boolean =>{
return val != null && typeof val == 'object';
}
// #endif