Rocky_Mountain_Vending/.pnpm-store/v10/files/3a/51a046a4ee2b60798092fb601f5520e1f7f953b321aaa74e56aaf694f0ec78770a1466a094a42d06ac98ea7f38650a4541e44c950f1b06830fca05f81c7d16
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

21 lines
434 B
Text

/**
* @license
* Copyright 2020 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Asserts that the given value is truthy.
* @param value - some conditional statement
* @param message - the error message to throw if the value is not truthy.
*
* @internal
*/
export const assert: (value: unknown, message?: string) => asserts value = (
value,
message,
) => {
if (!value) {
throw new Error(message);
}
};