1.3.0 • Published 7 months ago

array-tap v1.3.0

Weekly downloads
91
License
MIT
Repository
github
Last release
7 months ago

Get value of array between chained calls

Tap can be placed in chains between filter and map. It expects a callback function that will get a value of array.

How to use

Import array-tap once in your project. It will extend Array with a tap method.

import 'array-tap';

["Alice", "in", "wonderland"]
  .map(str => str.length)
  .tap(arr => console.log(arr)) // prints: [5, 2, 10]
  .filter(n => n > 5);
1.2.0

7 months ago

1.3.0

7 months ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago