@w5s/errorFunctionswarningwarning Callablewarning(condition: boolean, message?: null | string): voidAssert that condition is truthy, else print a message using console.warn In production environment, message parameter could be stripped from source in order to reduce file size@examplewarning(true, 'this should be true');// passwarning(false, 'this should be true');// console.warn('Warning: this should be true')
Assert that
condition
is truthy, else print a message usingconsole.warn
In production environment,
message
parameter could be stripped from source in order to reduce file size