Rocky_Mountain_Vending/.pnpm-store/v10/files/dc/4b5ebe1d9dda086754a66b71fe26421294e3908a4c18061651d3f472ebd61f1d42475393a95496d9579e1fcfd6c71131831a5673e668e3c03eb3f2003a0962
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

9 lines
306 B
Text

export const booleanSelector = (obj, key, type) => {
if (!(key in obj))
return undefined;
if (obj[key] === "true")
return true;
if (obj[key] === "false")
return false;
throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
};