@basic-streams/of
v1.0.0
Published
of operator for basic-streams
Downloads
17
Readme
@basic-streams/of
of<T>(value: T): Stream<T>
Creates a stream containing the given value
.
import of from "@basic-streams/of"
const stream = of(1)
stream(x => {
console.log(x)
})
// > 1