@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
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
npm i @basic-streams/of
1
1.0.0
MIT
2.85 kB
8