Codibre/fluent-iterable

View on GitHub
src/recipes/next-recipe.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { AnyIterable, Mapper } from 'augmentative-iterable';

function nextOperation<T, R>(
  this: AnyIterable<T>,
  callback: Mapper<AnyIterable<T>, R>,
) {
  return callback(this);
}

export function nextRecipe(): any {
  return nextOperation;
}