Fake Mirrors
    Preparing search index...

    Function arrayIncludes

    • A type-safe wrapper for Array.includes().

      This function acts as a type predicate, narrowing the type of the element after a successful check. It is useful for filtering or validating array contents.

      Type Parameters

      • T

        The type of elements in the array.

      Parameters

      • coll: readonly T[]

        The read-only array to search within.

      • el: unknown

        The element to search for.

      Returns el is T

      true if the element exists in the array, and narrows the type of el to T.