goldies
    Preparing search index...

    Function fromArray

    • Converts an array to a comma-separated string.

      Type Parameters

      • T

      Parameters

      • arr: T[]

        The input array.

      Returns string

      The comma-separated string or undefined if the input is not an array.

      const inputArray = ['a', 'b', 'c'];
      const result = fromArray(inputArray); // 'a,b,c'

      Use String(arr) or arr.toString(). Will be removed in goldies 6.0.