Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions lib/node_modules/@stdlib/utils/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@
*
* @example
* var p = ns.convertPath( '/c/foo/bar/beep.c', 'win32' );
* // returns 'c:\\foo\\bar\\beep.c'

Check failure on line 786 in lib/node_modules/@stdlib/utils/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Displayed return value is `c:\\foo\\bar\\beep.c`, but expected `c:\foo\bar\beep.c` instead
*
* @example
* var p = ns.convertPath( '/c/foo/bar/beep.c', 'mixed' );
Expand Down Expand Up @@ -1928,7 +1928,7 @@
*
* @example
* var str = ns.rescape( '[A-Z]*' );
* // returns '\\[A\\-Z\\]\\*'

Check failure on line 1931 in lib/node_modules/@stdlib/utils/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Displayed return value is `\\[A\\-Z\\]\\*`, but expected `\[A\-Z\]\*` instead
*/
rescape: typeof rescape;

Expand Down Expand Up @@ -2156,7 +2156,7 @@
* var obj = {'a':{'b':{'c':'d'}}};
*
* var out = flatten( obj );
* // returns {'a|b':{'c':'d'}}
* // returns {'a|b|c':'d'}
*/
flattenObject: typeof flattenObject;

Expand Down Expand Up @@ -3256,23 +3256,30 @@
* @returns function wrapper
*
* @example
* function foo( a, b, c ) {
* return [ a, b, c ];
* }
*
* function clbk( v ) {
* this.count += 1;
* return v * 2;
* }
*
* var thisArg = { 'count': 0 };
* var bar = ns.mapArguments( foo, clbk, thisArg );
* function Foo() {
* this.x = 1;
* this.y = 2;
* }
*
* var out = bar( 1, 2, 3 );
* // returns [ 2, 4, 6 ]
* Foo.prototype.scale = function scale( a, b ) {
* return [ this.x*a, this.y*b ];
* };
*
* var count = thisArg.count;
* // returns 3
* var ctx = {
* 'x': 10,
* 'y': 20
* };
*
* var foo = new Foo();
*
* var bar = ns.mapArguments( foo.scale, clbk, ctx );
*
* var out = bar( 1, 2 );
* // returns [ 20, 80 ]
*/
mapArguments: typeof mapArguments;

Expand Down
Loading