zeed
    Preparing search index...

    Function arrayRemoveElement

    • Remove all occurrences of el from arr in-place and return the mutated array. If arr is not an array, returns an empty array.

      Type Parameters

      • T

        element type

      Parameters

      • arr: T[]

        array to modify

      • el: T

        element to remove

      Returns T[]

      the same array instance with el removed