Function includes

  • Same as Array.includes() but with better typing

    Type Parameters

    • T

    • U

    Parameters

    • coll: readonly T[]
    • el: U

    Returns el is T