We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is.const()
assert.const()
Maybe it is already here under a different name but I want to assert that a value is a specific value (strict equals).
e.g.
// formula.type is "number" | "string" assert.const(formula.type, "number"); // formula.type is now narrowed down to "number"