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>
18 lines
No EOL
415 B
Text
18 lines
No EOL
415 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, message) => {
|
|
if (!value) {
|
|
throw new Error(message);
|
|
}
|
|
};
|
|
//# sourceMappingURL=assert.js.map |