most-from-array
Version:
Creates a mostjs stream from an array
21 lines (16 loc) • 312 B
Markdown
Creates a [most/core](https://github.com/mostjs/core) stream from an array.
```ts
import { fromArray } from 'most-from-array'
const stream = fromArray([1, 2, 3, 4])
const tapped = tap(console.log, stream)
runEffects(tapped, newDefaultScheduler())
/*
Console output:
1
2
3
4
*/
```