UNPKG

@textlint/kernel

Version:
15 lines 400 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.invariant = invariant; /** * Test if condition is truthy. * @param {any} expression to be evaluated * @param {string} error message to be shown * @returns {void} * @throws */ function invariant(condition, message) { if (!condition) throw new Error(message); } //# sourceMappingURL=invariant.js.map