diff --git a/lib/node_modules/@stdlib/utils/docs/types/index.d.ts b/lib/node_modules/@stdlib/utils/docs/types/index.d.ts index 47907b5ad831..e7788a598422 100644 --- a/lib/node_modules/@stdlib/utils/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/utils/docs/types/index.d.ts @@ -2156,7 +2156,7 @@ interface Namespace { * var obj = {'a':{'b':{'c':'d'}}}; * * var out = flatten( obj ); - * // returns {'a|b':{'c':'d'}} + * // returns {'a|b|c':'d'} */ flattenObject: typeof flattenObject; @@ -3256,23 +3256,30 @@ interface Namespace { * @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;