Files
Home_Buying_App/node_modules/graphql/jsutils/devAssert.mjs
jackbeeby b412dfe2ca Initialisation
Added the packages and files for the backend server
2024-12-15 17:48:45 +11:00

8 lines
159 B
JavaScript

export function devAssert(condition, message) {
const booleanCondition = Boolean(condition);
if (!booleanCondition) {
throw new Error(message);
}
}