Skip to content

Commit 1bac907

Browse files
committed
Auto-generated commit
1 parent 20ac84d commit 1bac907

5 files changed

Lines changed: 10 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-06-29)
7+
## Unreleased (2025-07-04)
88

99
<section class="reverts">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`24c0051`](https://github.com/stdlib-js/stdlib/commit/24c0051a611e45011a152f0a27259bbf5dcd681b) - **docs:** update examples _(by Athan Reines)_
2526
- [`580b0b3`](https://github.com/stdlib-js/stdlib/commit/580b0b3a4535b08100b2a62763723e1fa34bcd9d) - **docs:** resolve NaN return values in `maxabsn` and `minabsn` examples _(by Philipp Burckhardt)_
2627
- [`a51fa22`](https://github.com/stdlib-js/stdlib/commit/a51fa22399f36b4d83ba0d189d297af4aa429354) - **docs:** minor clean-up _(by Philipp Burckhardt)_
2728
- [`a81d6c3`](https://github.com/stdlib-js/stdlib/commit/a81d6c35d11075753c928e38258023266932486e) - **chore:** replace manual `for` loop in examples [(#6488)](https://github.com/stdlib-js/stdlib/pull/6488) _(by Harsh)_
@@ -41,8 +42,9 @@
4142

4243
### Contributors
4344

44-
A total of 2 people contributed to this release. Thank you to the following contributors:
45+
A total of 3 people contributed to this release. Thank you to the following contributors:
4546

47+
- Athan Reines
4648
- Harsh
4749
- Philipp Burckhardt
4850

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
198198
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
199199
Yugal Kaushik <yugalkaushik14@gmail.com>
200200
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
201+
deepak427 <62477872+deepak427@users.noreply.github.com>
201202
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
202203
ditsu <170345142+ditsus@users.noreply.github.com>
203204
ekambains <bainsinbusiness@gmail.com>

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ var v = maxabsn();
131131

132132
```javascript
133133
var uniform = require( '@stdlib/random-array-uniform' );
134+
var naryFunction = require( '@stdlib/utils-nary-function' );
134135
var logEachMap = require( '@stdlib/console-log-each-map' );
135136
var maxabsn = require( '@stdlib/math-base-special-maxabsn' );
136137

@@ -140,11 +141,7 @@ var opts = {
140141
var x = uniform( 100, -500.0, 500.0, opts );
141142
var y = uniform( 100, -500.0, 500.0, opts );
142143

143-
function wrapper( a, b ) {
144-
return maxabsn( a, b );
145-
}
146-
147-
logEachMap( 'maxabsn(%0.4f,%0.4f) = %0.4f', x, y, wrapper );
144+
logEachMap( 'maxabsn(%0.4f,%0.4f) = %0.4f', x, y, naryFunction( maxabsn, 2 ) );
148145
```
149146

150147
</section>

examples/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
'use strict';
2020

2121
var uniform = require( '@stdlib/random-array-uniform' );
22+
var naryFunction = require( '@stdlib/utils-nary-function' );
2223
var logEachMap = require( '@stdlib/console-log-each-map' );
2324
var maxabsn = require( './../lib' );
2425

@@ -28,8 +29,4 @@ var opts = {
2829
var x = uniform( 100, -500.0, 500.0, opts );
2930
var y = uniform( 100, -500.0, 500.0, opts );
3031

31-
function wrapper( a, b ) {
32-
return maxabsn( a, b );
33-
}
34-
35-
logEachMap( 'maxabsn(%0.4f,%0.4f) = %0.4f', x, y, wrapper );
32+
logEachMap( 'maxabsn(%0.4f,%0.4f) = %0.4f', x, y, naryFunction( maxabsn, 2 ) );

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@stdlib/math-base-assert-is-nan": "^0.2.2",
4848
"@stdlib/math-base-assert-is-positive-zero": "^0.2.2",
4949
"@stdlib/random-array-uniform": "^0.2.1",
50+
"@stdlib/utils-nary-function": "^0.2.2",
5051
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5152
"istanbul": "^0.4.1",
5253
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",

0 commit comments

Comments
 (0)