Skip to content

Commit 5796d32

Browse files
committed
Auto-generated commit
1 parent 5584787 commit 5796d32

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ A total of 23 issues were closed in this release:
212212

213213
<details>
214214

215+
- [`68f3b04`](https://github.com/stdlib-js/stdlib/commit/68f3b044b857c0b812dbaaeb0750fcf96428d43c) - **docs:** update `utils` TypeScript declarations [(#8883)](https://github.com/stdlib-js/stdlib/pull/8883) _(by stdlib-bot)_
215216
- [`798b688`](https://github.com/stdlib-js/stdlib/commit/798b6883aeb529c858d2a2003ecf0b45609e16cf) - **docs:** update namespace table of contents [(#8879)](https://github.com/stdlib-js/stdlib/pull/8879) _(by stdlib-bot)_
216217
- [`cd0d010`](https://github.com/stdlib-js/stdlib/commit/cd0d010a9f4a8f98c18a6fbd778d91509cd91e6b) - **chore:** fix JavaScript lint errors [(#8420)](https://github.com/stdlib-js/stdlib/pull/8420) _(by kaushal-kumar-it, Athan Reines)_
217218
- [`a0f2b40`](https://github.com/stdlib-js/stdlib/commit/a0f2b403a936770b83022b57027ad17312e15bb7) - **docs:** update example _(by Athan Reines)_

docs/types/index.d.ts

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ interface Namespace {
21562156
* var obj = {'a':{'b':{'c':'d'}}};
21572157
*
21582158
* var out = flatten( obj );
2159-
* // returns {'a|b':{'c':'d'}}
2159+
* // returns {'a|b|c':'d'}
21602160
*/
21612161
flattenObject: typeof flattenObject;
21622162

@@ -3256,23 +3256,30 @@ interface Namespace {
32563256
* @returns function wrapper
32573257
*
32583258
* @example
3259-
* function foo( a, b, c ) {
3260-
* return [ a, b, c ];
3261-
* }
3262-
*
32633259
* function clbk( v ) {
3264-
* this.count += 1;
32653260
* return v * 2;
32663261
* }
32673262
*
3268-
* var thisArg = { 'count': 0 };
3269-
* var bar = ns.mapArguments( foo, clbk, thisArg );
3263+
* function Foo() {
3264+
* this.x = 1;
3265+
* this.y = 2;
3266+
* }
32703267
*
3271-
* var out = bar( 1, 2, 3 );
3272-
* // returns [ 2, 4, 6 ]
3268+
* Foo.prototype.scale = function scale( a, b ) {
3269+
* return [ this.x*a, this.y*b ];
3270+
* };
32733271
*
3274-
* var count = thisArg.count;
3275-
* // returns 3
3272+
* var ctx = {
3273+
* 'x': 10,
3274+
* 'y': 20
3275+
* };
3276+
*
3277+
* var foo = new Foo();
3278+
*
3279+
* var bar = ns.mapArguments( foo.scale, clbk, ctx );
3280+
*
3281+
* var out = bar( 1, 2 );
3282+
* // returns [ 20, 80 ]
32763283
*/
32773284
mapArguments: typeof mapArguments;
32783285

0 commit comments

Comments
 (0)