• Check whether a TypedArray's contents equal the values produced by a generator function. Returns undefined if the check passes, or an Error if not.

    Array had unexpected contents at indices 2 through 19.
     Starting at index 1:
       actual == 0x: 00 fe ff 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 00
       failed ->        xx xx    xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
     expected ==     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    
    Array had unexpected contents at indices 2 through 29.
     Starting at index 1:
       actual ==  0.000 -2.000e+100 -1.000e+100 0.000 1.000e+100 2.000e+100 3.000e+100 4.000e+100 5.000e+100 6.000e+100 7.000e+100 ...
       failed ->                 xx          xx               xx         xx         xx         xx         xx         xx         xx ...
     expected ==  0.000       0.000       0.000 0.000      0.000      0.000      0.000      0.000      0.000      0.000      0.000 ...
    

    Parameters

    • actual: Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float16Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array
    • generator: CheckElementsGenerator

    Returns ErrorWithExtra | undefined

Generated using TypeDoc