affirmation javscript
function assert(condition, message) {
if (!condition) {
throw new Error(message || "Assertion failed");
}
}
Valentin Döring
function assert(condition, message) {
if (!condition) {
throw new Error(message || "Assertion failed");
}
}