Allows you to use kotlin-like ?: throw or sth like that.
Can be used like const a = obj.x ?? throwExpression(() => new Error("no x"))
const a = obj.x ?? throwExpression(() => new Error("no x"))
Generated using TypeDoc
Allows you to use kotlin-like ?: throw or sth like that.
Can be used like
const a = obj.x ?? throwExpression(() => new Error("no x"))