@enonic/js-utils
    Preparing search index...

    Function isNotNil

    • Check if a value is not null or undefined.

      Acts as a TypeScript type guard, narrowing the type of value from T | null | undefined to NonNullable<T> if true.

      Type Parameters

      • T

      Parameters

      • value: T

        The value to check.

      Returns value is NonNullable<T>

      true if the value is neither null nor undefined.