Narazaka / observable-collection.js

ObserbableCollection like classes for RxJS
8 stars 0 forks source link
reactive-programming rxjs

observable-collection.js - ObserbableCollection like classes for RxJS

Synopsys

import { ObservableArray } from "observable-collection";

const array = new ObservableArray(1, 2, 3);
const array2 = ObservableArray.from([1, 2, 3]);

console.log(array instanceof Array);
// > true

array.subscribe(arr => console.log(arr));
array.push(4);
// > [1, 2, 3, 4]

See also

License

This is released under MIT License.