UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

13 lines (12 loc) 368 B
//#region src/utils/handleValueOrFn.ts /** * */ function handleValueOrFn(value, url, defaultValue) { if (typeof value === "function") return value(url); if (typeof value !== "undefined") return value; if (typeof defaultValue !== "undefined") return defaultValue; } //#endregion export { handleValueOrFn as t }; //# sourceMappingURL=handleValueOrFn-CKEDuW4I.mjs.map