2.2.0 • Published 4 months ago
rxjs-collection v2.2.0
RXJS Collection
RXJS enhanced Array, Map, WeakMap, Set and WeakSet.
Installation
npm install rxjs-collection
Usage
Each collection has been enhanced with asObservable
and {un}subscribe
alike methods:
import { ReactiveMap } from 'rxjs-collection';
const reactiveMap : ReactiveMap<number, number> = new ReactiveMap<number, number>();
// subscribe to mutations
reactiveMap.asObservable().subscribe(map => map.has(1));
reactiveMap.subscribe(map => map.has(1));
// mutate the collection
reactiveMap.set(1, 1);
// unsubscribe from mutations
reactiveMap.unsubscribe();
Documentation
Read the documenation for a deep dive.
2.2.0-beta.1
4 months ago
2.2.0
4 months ago
2.1.3
4 months ago
2.1.2
2 years ago
2.1.0-beta.1
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
2.1.1
3 years ago
1.0.0-alpha.6
3 years ago
2.1.0
3 years ago
2.0.0
3 years ago
1.0.0-alpha.5
3 years ago
1.0.0-alpha.4
3 years ago
1.0.0-alpha.3
3 years ago
1.0.0-alpha.2
3 years ago
1.0.0-alpha.1
3 years ago