You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/utils/inmap-async/README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ inmapAsync( arr, fcn, done );
51
51
3000
52
52
true
53
53
[ 0, 2500, 2000 ]
54
+
*/
54
55
```
55
56
56
57
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 ) {
68
69
throw error;
69
70
}
70
71
console.log( collection );
72
+
// => [ 'beep: 0', 'beep: 1', 'beep: 2' ]
71
73
}
72
74
73
75
var arr = [ 3000, 2500, 1000 ];
74
76
75
77
inmapAsync( arr, fcn, done );
76
-
// => [ 'beep: 0', 'beep: 1', 'beep: 2' ]
77
78
```
78
79
79
80
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 ) {
0 commit comments