Function tableFromArrays

  • Creates a new Table from an object of typed arrays or JavaScript arrays.

    Type Parameters

    • I extends Record<string | number | symbol, readonly unknown[] | TypedArray | BigIntArray>

    Parameters

    • input: I

      Input an object of typed arrays or JavaScript arrays.

    Returns Table<{
        [P in keyof I]: ArrayDataType<I[P]>
    }>

    A new Table.

    const table = tableFromArrays({
    a: [1, 2, 3],
    b: new Int8Array([1, 2, 3]),
    })