Codibre/fluent-iterable

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

Summary

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

export function concatRecipe(iterateAll: Function) {
  return function <T>(
    this: AnyIterable<T>,
    ...iterables: Array<AnyIterable<T>>
  ) {
    return iterateAll([this, ...iterables]);
  };
}