UNPKG

@thi.ng/transducers

Version:

Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations

10 lines (9 loc) 201 B
import { ensureIterable } from "@thi.ng/arrays/ensure-iterable"; function* concat(...sources) { for (let src of sources) { src != null && (yield* ensureIterable(src)); } } export { concat };