Skip to main content
decode_no_inf_nan: (data: string | string[]) => any = decodeNoInfNan

Decode, turning “Infinity”, “-Infinity” and “NaN” into null

Type Declaration

    • (data: string | string[]): any
    • Decodes JSON string(s), turning the quoted values “Infinity”, “-Infinity” and “NaN” into null.

      Noticeably slower than decodeRegular, since every value passes through a reviver. The JavaScript API exposes this as GPUdb.decode_no_inf_nan.

      Parameters

      • data: string | string[]

      Returns any