UNPKG

@thi.ng/transducers

Version:

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

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