@@ -74,6 +74,8 @@ For guidance on reviving a JSON-serialized typed array, see [`reviver()`][@stdli
7474
7575 - [ ` Float64Array ` ] [ @stdlib/array/float64 ]
7676 - [ ` Float32Array ` ] [ @stdlib/array/float32 ]
77+ - [ ` Complex128Array ` ] [ @stdlib/array/complex128 ]
78+ - [ ` Complex64Array ` ] [ @stdlib/array/complex64 ]
7779 - [ ` Int32Array ` ] [ @stdlib/array/int32 ]
7880 - [ ` Uint32Array ` ] [ @stdlib/array/uint32 ]
7981 - [ ` Int16Array ` ] [ @stdlib/array/int16 ]
@@ -84,7 +86,7 @@ For guidance on reviving a JSON-serialized typed array, see [`reviver()`][@stdli
8486
8587- The implementation provides basic support for custom typed arrays and sets the ` type ` field to the closest known typed array type.
8688
87- <!-- eslint-disable no-restricted-syntax, no-useless-constructor, new-cap, stdlib/require-globals -->
89+ <!-- eslint-disable no-restricted-syntax, no-useless-constructor, new-cap, stdlib/require-globals, node/no-unsupported-features/es-syntax -->
8890
8991 ``` javascript
9092 class CustomArray extends Float64Array () {
@@ -126,6 +128,8 @@ var Uint16Array = require( '@stdlib/array/uint16' );
126128var Int8Array = require( '@stdlib/array/int8' );
127129var Uint8Array = require( '@stdlib/array/uint8' );
128130var Uint8ClampedArray = require( '@stdlib/array/uint8c' );
131+ var Complex64Array = require( '@stdlib/array/complex64' );
132+ var Complex128Array = require( '@stdlib/array/complex128' );
129133var toJSON = require( '@stdlib/array/to-json' );
130134
131135var arr = new Float64Array( [ 5.0, 3.0 ] );
@@ -146,6 +150,24 @@ json = toJSON( arr );
146150 }
147151*/
148152
153+ arr = new Complex128Array( [ 5.0, 3.0 ] );
154+ json = toJSON( arr );
155+ /* returns
156+ {
157+ 'type': 'Complex128Array',
158+ 'data': [ 5.0, 3.0 ]
159+ }
160+ */
161+
162+ arr = new Complex64Array( [ 5.0, 3.0 ] );
163+ json = toJSON( arr );
164+ /* returns
165+ {
166+ 'type': 'Complex64Array',
167+ 'data': [ 5.0, 3.0 ]
168+ }
169+ */
170+
149171arr = new Int32Array( [ -5, 3 ] );
150172json = toJSON( arr );
151173/* returns
@@ -246,6 +268,10 @@ json = toJSON( arr );
246268
247269[@stdlib/ array/ float32]: https: // github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/float32
248270
271+ [@stdlib/ array/ complex128]: https: // github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/complex128
272+
273+ [@stdlib/ array/ complex64]: https: // github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/complex64
274+
249275[@stdlib/ array/ int32]: https: // github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/int32
250276
251277[@stdlib/ array/ uint32]: https: // github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/uint32
0 commit comments