@zakodium/utils
    Preparing search index...

    Function assert

    • Basic assertion with (a possible lazy) message. Pay attention, it will throw an error if the value is falsy, even for 0, false, and empty strings. If these cases are not desired, use assertDefined or assertDefinedNotNull instead.

      Parameters

      • value: unknown
      • message: string | (() => string) = ...

      Returns asserts value