We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Usage: createSplitter<T>(fields: Array<keyof T>)
createSplitter<T>(fields: Array<keyof T>)
Module: flowcode-flow
Type: Splitter<T>
Splitter<T>
Input ports:
all
T
Output ports: T (user defined)
Splits input into its properties and emits the split value on independent output ports.
import {connect} from "flowcode"; import {createSplitter} from "flowcode-flow"; const splitter = createSplitter(["foo", "bar"]); connect(splitter.o.foo, console.log); connect(splitter.o.bar, console.log); splitter.i.all({foo: "a", bar: "b"}); // logs: "a", "b"