Skip to content

mostjs-community/from-array

Repository files navigation

most-from-array

Creates a most/core stream from an array.

Usage

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
*/