Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/array

Index

Functions

  • pushUnlessIncluded(arr: any[], obj: any): boolean
  • Push an object in an array, unless already there.

    Parameters

    • arr: any[]

      The array to push the element.

    • obj: any

      The object for which to test.

    Returns boolean

    The object has been pushed in the array.

Generated using TypeDoc