@bodil/core - v0.4.9
    Preparing search index...

    Namespace assert

    Assertions and predicates.

    Classes

    AssertionError

    The specific Error type thrown by assertions.

    Functions

    assert

    Asserts that a condition is true. Throws an exception if it's not.

    assertAlways

    As assert, but isn't skipped in production.

    assertNever

    Assert that a type is never when type checking. Throws an unreachable exception if it's reached at runtime. This is meant as an exhaustiveness check.

    isAsyncIterable

    Tests whether a value is an AsyncIterable.

    isDeepEqual

    Compares two values for deep equality.

    isEmpty

    Tests whether a value is null, undefined, false, an empty array or an empty string.

    isIterable

    Tests whether a value is an Iterable.

    isNullish

    Tests whether a value is null or undefined.

    present

    Returns the given value unchanged if it's neither null nor undefined. Throws an exception otherwise.

    unreachable

    Throws an exception used to mark unreachable code.