toolish - v0.2.5
    Preparing search index...

    Function swapAllElements

    • Replaces all array elements matching the given value with the given replacement.

      Type Parameters

      • T

      Parameters

      • array: T[]
      • value: T
      • replacement: T

      Returns T[]

      the original replaced elements