Function pushUnlessIncluded

  • Push an object in an array, unless already there.

    Returns

    The object has been pushed in the array.

    Parameters

    • arr: any[]

      The array to push the element.

    • obj: any

      The object for which to test.

    Returns boolean

Generated using TypeDoc