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[] | BigIntArray | TypedArray>

    Parameters

    • input: I

      Input an object of typed arrays or JavaScript arrays.

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

    A new Table.

    Example

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

Generated using TypeDoc