Skip to content

Commit 80a260f

Browse files
committed
Fix return value annotations
1 parent e8aec94 commit 80a260f

File tree

1 file changed

+3
-2
lines changed
  • lib/node_modules/@stdlib/utils/inmap-async

1 file changed

+3
-2
lines changed

lib/node_modules/@stdlib/utils/inmap-async/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ inmapAsync( arr, fcn, done );
5151
3000
5252
true
5353
[ 0, 2500, 2000 ]
54+
*/
5455
```
5556

5657
The `next` callback accepts two arguments: `error` and `result`. The second argument to the `next` callback is used to update the `collection` element for the corresponding collection `index`, thus mutating the input `collection`.
@@ -68,12 +69,12 @@ function done( error, collection ) {
6869
throw error;
6970
}
7071
console.log( collection );
72+
// => [ 'beep: 0', 'beep: 1', 'beep: 2' ]
7173
}
7274

7375
var arr = [ 3000, 2500, 1000 ];
7476

7577
inmapAsync( arr, fcn, done );
76-
// => [ 'beep: 0', 'beep: 1', 'beep: 2' ]
7778
```
7879

7980
If the `next` callback is called with an `error` argument, the input `collection` may be __partially__ mutated.
@@ -94,12 +95,12 @@ function done( error, collection ) {
9495
throw error;
9596
}
9697
console.log( collection );
98+
// => [ 'beep: 0', 2000, 3000 ]
9799
}
98100

99101
var arr = [ 1000, 2000, 3000 ];
100102

101103
inmapAsync( arr, fcn, done );
102-
// => [ 'beep: 0', 2000, 3000 ]
103104
```
104105

105106
The function accepts the following `options`:

0 commit comments

Comments
 (0)