🙈 rx 🙉
monkey patch for https://github.com/Reactive-Extensions/RxJS
Install
npm i monkey-patches-rx --save --save-exact
Usage
Setup
var options = /* ... */;Rx = ;Rx options;
Options
all
with this option you can enable all patch.
options = all: true;// setup
typeFilter
with this option following methods will be added to Observables.
isTruthty
isFalsey
isDefined
isNull
isUndefined
isString
options = typeFilter: true;// setupvar obj$ = RxObservable;obj$; // 1 true {} [] 'Hi'obj$; // 0 null undefined false ''obj$; // 0 1 null false true '' {} [] 'Hi'obj$; // nullobj$; // undefinedobj$; // '' 'Hi'
Compatibility
I test this package with rx@4.1.0
and node@v5.3.0
Sem version, backward compatibility and ...
No. this is only 🐵 patch. so every time install this package with --save-exact
option.