time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (648B)


      1 
      2 {{alias}}( key, value )
      3     Revives a JSON-serialized typed array.
      4 
      5     The serialization format for typed array is an object having the following
      6     fields:
      7 
      8     - type: typed array type (e.g., "Float64Array", "Int8Array")
      9     - data: typed array data as an array of numbers
     10 
     11     Parameters
     12     ----------
     13     key: string
     14         Key.
     15 
     16     value: any
     17         Value.
     18 
     19     Returns
     20     -------
     21     out: any
     22         Value or typed array.
     23 
     24     Examples
     25     --------
     26     > var str = '{"type":"Float64Array","data":[5,3]}';
     27     > var arr = {{alias:@stdlib/utils/parse-json}}( str, {{alias}} )
     28     <Float64Array>[ 5.0, 3.0 ]
     29 
     30     See Also
     31     --------
     32