UNPKG

@code-o-mat/globals

Version:

Abstract Package to support CodeOMat series of apps.

13 lines (10 loc) 327 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assert = void 0; var assert = function assert(cond) { var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "Error Message Needed!"; if (cond !== true) throw new Error(message); }; exports.assert = assert;