UNPKG

rimmel

Version:

A Stream-Oriented UI library for the Rx.Observable Universe

13 lines (11 loc) 363 B
/** * An explicit sink that sets the .value of an HTML input element * * @param Element node - The HTML Input element to change the value for * @returns Function A function that takes a value and sets it as the element's .value **/ const ValueSink = (node) => (str) => { node.value = str; }; export { ValueSink }; //# sourceMappingURL=value-sink.js.map