• Converts a 2D array to a comma-separated values (CSV) string

    Example

    toCSV([['a', 'b'], ['c', 'd']]); // '"a","b"\n"c","d"'
    

    Example

    toCSV([['a', 'b'], ['c', 'd']], ';'); // '"a";"b"\n"c";"d"'
    

    Type Parameters

    • T

    Parameters

    • arr: T[]
    • Optional delimiter: string = ","

    Returns string

Generated using TypeDoc