Skip to content

Commit d0514c9

Browse files
committed
Resolve lint errors
1 parent 880dc38 commit d0514c9

File tree

1 file changed

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

1 file changed

+12
-2
lines changed

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

+12-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ var inmapAsync = require( '@stdlib/utils/inmap-async' );
2525

2626
Invokes a function for each element in a `collection` and updates the `collection` in-place.
2727

28+
<!-- eslint-disable no-use-before-define -->
29+
2830
``` javascript
2931
function fcn( value, index, next ) {
3032
setTimeout( onTimeout, value );
@@ -111,6 +113,8 @@ The function accepts the following `options`:
111113

112114
By default, all elements are processed concurrently, which means that the function does __not__ guarantee completion order. To process each `collection` element sequentially, set the `series` option to `true`.
113115

116+
<!-- eslint-disable no-use-before-define -->
117+
114118
``` javascript
115119
function fcn( value, index, next ) {
116120
setTimeout( onTimeout, value );
@@ -125,7 +129,7 @@ function done( error, collection ) {
125129
throw error;
126130
}
127131
console.log( collection === arr );
128-
console.log( collection )
132+
console.log( collection );
129133
}
130134

131135
var arr = [ 3000, 2500, 1000 ];
@@ -146,6 +150,8 @@ inmapAsync( arr, opts, fcn, done );
146150

147151
To limit the maximum number of pending function invocations, set the `limit` option.
148152

153+
<!-- eslint-disable no-use-before-define -->
154+
149155
``` javascript
150156
function fcn( value, index, next ) {
151157
setTimeout( onTimeout, value );
@@ -181,6 +187,8 @@ inmapAsync( arr, opts, fcn, done );
181187

182188
To set the execution context of `fcn`, set the `thisArg` option.
183189

190+
<!-- eslint-disable no-use-before-define -->
191+
184192
``` javascript
185193
function fcn( value, index, next ) {
186194
this.count += 1;
@@ -202,7 +210,7 @@ function done( error, collection ) {
202210
var arr = [ 3000, 2500, 1000 ];
203211

204212
var context = {
205-
'count': 0
213+
'count': 0
206214
};
207215

208216
var opts = {
@@ -231,6 +239,8 @@ When invoked, `fcn` is provided a maximum of four arguments:
231239

232240
The actual number of provided arguments depends on function `length`. If `fcn` accepts two arguments, `fcn` is provided `value` and `next`. If `fcn` accepts three arguments, `fcn` is provided `value`, `index`, and `next`. For every other `fcn` signature, `fcn` is provided all four arguments.
233241

242+
<!-- eslint-disable no-use-before-define -->
243+
234244
``` javascript
235245
function fcn( value, i, collection, next ) {
236246
console.log( 'collection: %s. %d: %d', collection.join( ',' ), i, value );

0 commit comments

Comments
 (0)