@stdlib/utils-inmap 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2021 The Stdlib Authors.
1
+ Copyright (c) 2016-2022 The Stdlib Authors.
package/README.md CHANGED
@@ -20,7 +20,7 @@ limitations under the License.
20
20
 
21
21
  # inmap
22
22
 
23
- [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
23
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
24
24
 
25
25
  > Invoke a function for each element in a collection and update the collection in-place.
26
26
 
@@ -220,6 +220,21 @@ console.log( out );
220
220
 
221
221
  <!-- /.references -->
222
222
 
223
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
224
+
225
+ <section class="related">
226
+
227
+ * * *
228
+
229
+ ## See Also
230
+
231
+ - <span class="package-name">[`@stdlib/utils/for-each`][@stdlib/utils/for-each]</span><span class="delimiter">: </span><span class="description">invoke a function for each element in a collection.</span>
232
+ - <span class="package-name">[`@stdlib/utils/inmap-right`][@stdlib/utils/inmap-right]</span><span class="delimiter">: </span><span class="description">invoke a function for each element in a collection and update the collection in-place, iterating from right to left.</span>
233
+
234
+ </section>
235
+
236
+ <!-- /.related -->
237
+
223
238
  <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
224
239
 
225
240
 
@@ -246,7 +261,7 @@ See [LICENSE][stdlib-license].
246
261
 
247
262
  ## Copyright
248
263
 
249
- Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
264
+ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
250
265
 
251
266
  </section>
252
267
 
@@ -265,9 +280,20 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
265
280
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-inmap/main.svg
266
281
  [coverage-url]: https://codecov.io/github/stdlib-js/utils-inmap?branch=main
267
282
 
283
+ <!--
284
+
268
285
  [dependencies-image]: https://img.shields.io/david/stdlib-js/utils-inmap.svg
269
286
  [dependencies-url]: https://david-dm.org/stdlib-js/utils-inmap/main
270
287
 
288
+ -->
289
+
290
+ [umd]: https://github.com/umdjs/umd
291
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
292
+
293
+ [deno-url]: https://github.com/stdlib-js/utils-inmap/tree/deno
294
+ [umd-url]: https://github.com/stdlib-js/utils-inmap/tree/umd
295
+ [esm-url]: https://github.com/stdlib-js/utils-inmap/tree/esm
296
+
271
297
  [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
272
298
  [chat-url]: https://gitter.im/stdlib-js/stdlib/
273
299
 
@@ -285,6 +311,14 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
285
311
 
286
312
  [mdn-array-map]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
287
313
 
314
+ <!-- <related-links> -->
315
+
316
+ [@stdlib/utils/for-each]: https://www.npmjs.com/package/@stdlib/utils-for-each
317
+
318
+ [@stdlib/utils/inmap-right]: https://www.npmjs.com/package/@stdlib/utils-inmap-right
319
+
320
+ <!-- </related-links> -->
321
+
288
322
  </section>
289
323
 
290
324
  <!-- /.links -->
@@ -54,7 +54,7 @@ type Binary = ( value: any, index: number ) => any;
54
54
  * @param collection - input collection
55
55
  * @returns updated element
56
56
  */
57
- type Tertiary = ( value: any, index: number, collection: Collection ) => any;
57
+ type Ternary = ( value: any, index: number, collection: Collection ) => any;
58
58
 
59
59
  /**
60
60
  * Returns an updated collection element.
@@ -64,7 +64,7 @@ type Tertiary = ( value: any, index: number, collection: Collection ) => any;
64
64
  * @param collection - input collection
65
65
  * @returns updated element
66
66
  */
67
- type Callback = Nullary | Unary | Binary | Tertiary;
67
+ type Callback = Nullary | Unary | Binary | Ternary;
68
68
 
69
69
  /**
70
70
  * Invokes a function once for each element in a collection and updates the collection in-place.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/utils-inmap",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Invoke a function for each element in a collection and update the collection in-place.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {