Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "complex/reviver-float32/docs/types/index.d"

Index

Functions

Functions

reviver

  • reviver(key: string, value: any): any
  • Revives a JSON-serialized 64-bit complex number.

    Parameters

    • key: string

      key

    • value: any

      value

    Returns any

    value or 64-bit complex number

    Example

    var parseJSON = require( `@stdlib/utils/parse-json` );
    
    var str = '{"type":"Complex64","re":5,"im":3}';
    
    var z = parseJSON( str, reviver );
    // returns <Complex64>