Rocky_Mountain_Vending/.pnpm-store/v10/files/b3/21adc4089ac971e037b8f8c11e9203ee8ea79ef52a120fba329228328a39518d24e3c4e7bae123c443db2eb557c5ee61a50a6c2faf147ed7048bc64e9e9ccc
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

27 lines
No EOL
607 B
Text

function resolveArray(value) {
if (Array.isArray(value)) {
return value;
}
return [
value
];
}
function resolveAsArrayOrUndefined(value) {
if (typeof value === 'undefined' || value === null) {
return undefined;
}
return resolveArray(value);
}
function getOrigin(url) {
let origin = undefined;
if (typeof url === 'string') {
try {
url = new URL(url);
origin = url.origin;
} catch {}
}
return origin;
}
export { resolveAsArrayOrUndefined, resolveArray, getOrigin };
//# sourceMappingURL=utils.js.map