zeed
    Preparing search index...

    Function arrayToggleInPlace

    • Toggle presence of el in array in-place: remove if present, add if missing.

      Type Parameters

      • T

        element type

      Parameters

      • arr: T[]

        array to modify

      • el: T

        element to toggle

      Returns T[]

      the same array instance after the toggle