UNPKG

fast-iterable

Version:

Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).

10 lines (9 loc) 300 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.executeRecipe = void 0; function executeRecipe({ map, resolver }) { return function (action) { return map.call(this, (x) => resolver(action(x), () => x)); }; } exports.executeRecipe = executeRecipe;