Function _contains

  • Check if array contains value using equals to check equality

    TODO: add support for objects (should we check for keys or values?)

    Type Parameters

    • T

    Parameters

    • val: T
    • arr: T[]

    Returns boolean