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);