Mastering Reactive JavaScript
上QQ阅读APP看书,第一时间看更新

Observables from an array (fromArray)

To create an observable from an array, you can use the fromArray() method, as shown in the following code:

var myArray = [1,2,3]; 
Bacon
.fromArray(myArray);