observable-collection
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

observable-collection.js - ObserbableCollection like classes for RxJS

  • ObservableArray<T>
  • ObservableMap<K, V>
  • ObservableWeakMap<K, V>
  • ObservableSet<T>
  • ObservableWeakSet<T>

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.

Package Sidebar

Install

npm i observable-collection

Weekly Downloads

1

Version

1.2.3

License

MIT

Last publish

Collaborators

  • narazaka