How to use the iter-tools/es5/tap function in iter-tools

To help you get started, we’ve selected a few iter-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github conartist6 / sequins / src / subtypes / duplicated-mixin.js View on Github external
tap(tapFn) {
      return this.__doCollectionTransform(tap(item => tapFn(item, item, ...this.__selfParam)));
    }
github conartist6 / sequins / src / subtypes / keyed-mixin.js View on Github external
tap(tapFn) {
      return this.__doCollectionTransform(
        tap(([key, value]) => tapFn(value, key, ...this.__selfParam)),
      );
    }
github conartist6 / sequins / src / subtypes / indexed-mixin.js View on Github external
tap(tapFn) {
      return this.__doCollectionTransform(tap((value, i) => tapFn(value, i, ...this.__selfParam)));
    }