const isProduction = process.env.NODE_ENV === "production"; let assert: (cond: boolean, msg: string) => void; if (isProduction) { assert = function (cond: boolean, msg: string) { console.assert(cond, msg); }; } else { assert = function (_cond: boolean, _msg: string) {}; } export { assert };