You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/ndarray/defaults/README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,20 @@ The returned object has the following properties:
67
67
68
68
-**index_mode**: default index mode.
69
69
70
+
#### defaults.get( name )
71
+
72
+
Returns the setting value for a provided setting `name`.
73
+
74
+
```javascript
75
+
var v =defaults.get( 'order' );
76
+
// returns <string>
77
+
78
+
v =defaults.get( 'dtypes.floating_point' );
79
+
// returns <string>
80
+
```
81
+
82
+
The setting `name` corresponds to a flattened object path. For example, the setting name `'dtypes.default'` maps to the nested path `o.dtypes.default` as found in the object returned by `defaults()`.
0 commit comments