// package
minimalistic-assert
type: "module"
// preferences
// replacements (1)
snippet::assert
Simple or drop-in replacementThis package is no longer necessary. You can use a simple function to assert a value or an expression.
// example
function assert(val, msg) {
if (!val) throw new Error(msg);
}