stdlib-js / array

@@ -25,10 +25,10 @@
Loading
25 25
*
26 26
* @example
27 27
* var Float64Array = require( '@stdlib/array/float64' );
28 -
* var toJSON = require( '@stdlib/array/to-json' );
28 +
* var typedarray2json = require( '@stdlib/array/to-json' );
29 29
*
30 30
* var arr = new Float64Array( [ 5.0, 3.0 ] );
31 -
* var json = toJSON( arr );
31 +
* var json = typedarray2json( arr );
32 32
* // returns { 'type': 'Float64Array', 'data': [ 5.0, 3.0 ] }
33 33
*/
34 34

@@ -38,10 +38,10 @@
Loading
38 38
*
39 39
* var str = '{"type":"Float64Array","data":[5,3]}';
40 40
*
41 -
* var arr = parseJSON( str, reviver );
41 +
* var arr = parseJSON( str, reviveTypedArray );
42 42
* // returns <Float64Array>[ 5.0, 3.0 ]
43 43
*/
44 -
function reviver( key, value ) {
44 +
function reviveTypedArray( key, value ) {
45 45
	var ctor;
46 46
	if (
47 47
		value &&
@@ -59,4 +59,4 @@
Loading
59 59
60 60
// EXPORTS //
61 61
62 -
module.exports = reviver;
62 +
module.exports = reviveTypedArray;

@@ -25,11 +25,11 @@
Loading
25 25
*
26 26
* @example
27 27
* var parseJSON = require( '@stdlib/utils/parse-json' );
28 -
* var reviver = require( '@stdlib/array/reviver' );
28 +
* var reviveTypedArray = require( '@stdlib/array/reviver' );
29 29
*
30 30
* var str = '{"type":"Float64Array","data":[5,3]}';
31 31
*
32 -
* var arr = parseJSON( str, reviver );
32 +
* var arr = parseJSON( str, reviveTypedArray );
33 33
* // returns <Float64Array>[ 5.0, 3.0 ]
34 34
*/
35 35

@@ -47,10 +47,10 @@
Loading
47 47
* var Float64Array = require( '@stdlib/array/float64' );
48 48
*
49 49
* var arr = new Float64Array( [ 5.0, 3.0 ] );
50 -
* var json = toJSON( arr );
50 +
* var json = typedarray2json( arr );
51 51
* // returns { 'type': 'Float64Array', 'data': [ 5.0, 3.0 ] }
52 52
*/
53 -
function toJSON( arr ) {
53 +
function typedarray2json( arr ) {
54 54
	var data;
55 55
	var out;
56 56
	var i;
@@ -79,4 +79,4 @@
Loading
79 79
80 80
// EXPORTS //
81 81
82 -
module.exports = toJSON;
82 +
module.exports = typedarray2json;
Files Coverage
base 100.00%
buffer/lib 100.00%
complex128/lib 100.00%
complex64/lib 100.00%
convert-same/lib 100.00%
convert/lib 100.00%
ctors/lib 100.00%
dataview/lib 100.00%
datespace/lib 100.00%
dtype/lib 100.00%
dtypes/lib 100.00%
filled-by/lib 100.00%
filled/lib 100.00%
float32/lib 100.00%
float64/lib 100.00%
from-iterator/lib 100.00%
full-like/lib 100.00%
full/lib 100.00%
incrspace/lib 100.00%
int16/lib 100.00%
int32/lib 100.00%
int8/lib 100.00%
linspace/lib 100.00%
logspace/lib 100.00%
min-dtype/lib 100.00%
next-dtype/lib 100.00%
ones-like/lib 100.00%
ones/lib 100.00%
pool/lib 98.92%
promotion-rules/lib 100.00%
reviver/lib 100.00%
safe-casts/lib 100.00%
same-kind-casts/lib 100.00%
shape/lib 100.00%
shared-buffer/lib 100.00%
to-circular-iterator/lib 100.00%
to-iterator-right/lib 100.00%
to-iterator/lib 100.00%
to-json/lib 100.00%
to-sparse-iterator-right/lib 100.00%
to-sparse-iterator/lib 100.00%
to-strided-iterator/lib 100.00%
to-view-iterator-right/lib 100.00%
to-view-iterator/lib 100.00%
typed-complex-ctors/lib 100.00%
typed-complex-dtypes/lib 100.00%
typed-complex/lib 100.00%
typed-ctors/lib 100.00%
typed-dtypes/lib 100.00%
typed-float-ctors/lib 100.00%
typed-float-dtypes/lib 100.00%
typed-integer-ctors/lib 100.00%
typed-integer-dtypes/lib 100.00%
typed-real-ctors/lib 100.00%
typed-real-dtypes/lib 100.00%
typed-real-float-ctors/lib 100.00%
typed-real-float-dtypes/lib 100.00%
typed-real/lib 100.00%
typed-signed-integer-ctors/lib 100.00%
typed-signed-integer-dtypes/lib 100.00%
typed-unsigned-integer-ctors/lib 100.00%
typed-unsigned-integer-dtypes/lib 100.00%
typed/lib 100.00%
uint16/lib 100.00%
uint32/lib 100.00%
uint8/lib 100.00%
uint8c/lib 100.00%
zeros-like/lib 100.00%
zeros/lib 100.00%
lib/index.js 100.00%
Project Totals (206 files) 99.95%
3058040744
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading