@basic-streams/of
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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

Dependents (1)

Package Sidebar

Install

npm i @basic-streams/of

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.85 kB

Total Files

8

Last publish

Collaborators

  • pozadi