-
Notifications
You must be signed in to change notification settings - Fork 1
Noop
Dan Stocker edited this page May 30, 2019
·
1 revision
Usage: createNoop<V>()
Module: flowcode
Type: Noop<V>
Input ports:
-
d_val:V
Output ports:
-
d_val:V
Forwards input value unconditionally.
Noop is included in the core flowcode module as it is instrumental to building composite nodes, in which it often serves as a junction for inputs.
import {connect, createNoop} from "flowcode";
const noop = createNoop();
connect(noop.o.d_val, console.log);
noop.i.d_val(5);
// logs: 5