fast-iterable
Version:
Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).
16 lines (15 loc) • 712 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.internalAsyncWrapper = exports.internalWrapper = void 0;
const async_handler_1 = require("./async-handler");
const sync_handler_1 = require("./sync-handler");
const types_internal_1 = require("./types-internal");
const utils_1 = require("./utils");
function internalWrapper(iterable) {
return (0, types_internal_1.extendFluent)(iterable, sync_handler_1.syncHandler);
}
exports.internalWrapper = internalWrapper;
function internalAsyncWrapper(iterable) {
return (0, types_internal_1.extendFluent)((0, utils_1.iterateAsync)(iterable), async_handler_1.asyncHandler);
}
exports.internalAsyncWrapper = internalAsyncWrapper;