Function arrTableEachToString

  • Coerce each value of a 2D array table to string.

    Type Parameters

    • T

      The type of the elements in the input array.

    Parameters

    • table: T[][]

      The 2D array to convert.

    Returns string[][]

    The converted 2D array where each element is a string.

    Example

    const input: number[][] = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
    arrTableEachToString(input);
    //=> [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]

Generated using TypeDoc