包详细信息

most-from-array

mostjs-community10.9kMIT1.0.3

Creates a mostjs stream from an array

most, mostjs, reactive, event

自述文件

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