UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

18 lines (17 loc) 370 B
// src/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; } return void 0; } export { handleValueOrFn }; //# sourceMappingURL=chunk-TRWMHODU.mjs.map