UNPKG

fast-iterable

Version:

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

13 lines (12 loc) 264 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.catchSync = void 0; function* catchSync(errorCallback) { try { yield* this; } catch (err) { errorCallback(err); } } exports.catchSync = catchSync;