assert() (sometimes called invariant()) Instead of checks like: if (value === null) { throw new Error("missing value") } doSomethingThatNeedsValue(value)