8000 Auto-generated commit · stdlib-js/array-typed-real@8dd3ebe · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dd3ebe

Browse files
committed
Auto-generated commit
1 parent e2d0ea9 commit 8dd3ebe

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2016-2023 The Stdlib Authors.
1+
Copyright (c) 2016-2024 The Stdlib Authors.

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@
2121
// MODULES //
2222

2323
var isString = require( '@stdlib/assert-is-string' ).isPrimitive;
24-
var format = require( '@stdlib/string-format' );
2524
var ctors = require( '@stdlib/array-typed-ctors' );
25+
var defaults = require( '@stdlib/array-defaults' );
26+
var format = require( '@stdlib/string-format' );
27+
28+
29+
// VARIABLES //
30+
31+
var DEFAULT_DTYPE = defaults.get( 'dtypes.real' );
2632

2733

2834
// MAIN //
@@ -119,7 +125,7 @@ function realarray() {
119125
nargs -= 1;
120126
dtype = arguments[ nargs ];
121127
} else {
122-
dtype = 'float64';
128+
dtype = DEFAULT_DTYPE;
123129
}
124130
ctor = ctors( dtype );
125131
if ( ctor === null ) {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40+
"@stdlib/array-defaults": "^0.1.0",
4041
"@stdlib/array-typed-ctors": "^0.1.0",
4142
"@stdlib/assert-is-string": "^0.1.1",
4243
"@stdlib/string-format": "^0.1.1",

0 commit comments

Comments
 (0)
0