mapMaybePromise | WebHare Platform SDKWebHare Platform SDKPreparing search index...@webhare/stdmapMaybePromiseFunction mapMaybePromisemapMaybePromise<T, U>(value: T, cb: (arg: Awaited<T>) => U): U | Promise<U>Call a function on the value of a potential promise, return the result Type ParametersTUParametersvalue: TValue or promise cb: (arg: Awaited<T>) => UCallback to call on the value Returns U | Promise<U>The result of the callback, or a promise resolving to that result if the input was a promise SettingsMember VisibilityProtectedInheritedThemeOSLightDarkWebHare Platform SDKLoading...
Call a function on the value of a potential promise, return the result