Function modifyArray

  • Add or remove an element from an array.

    Parameters

    • arr: any[]

      The array to be modified.

    • Optional ele: any

      The element to be added.

    • Optional remEle: any

      The element to be removed.

    Returns any[]

    • The modified array.

Generated using TypeDoc