UNPKG

@codibre/fluent-iterable

Version:

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

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