toolish - v0.2.5
    Preparing search index...

    Function removeElement

    • Removes the first matching element from the given array. If the array doesn't contain the element it's left as is.

      Type Parameters

      • T

      Parameters

      • array: T[]
      • element: T

      Returns undefined | T

      the original element if removed, undefined otherwise