Today I’ve published a new set of libraries to NPM - RxJS Primitives.
These are based on some operators I’ve collected over the last year, and some additional ones I’ve started adding.
Most are based around ECMASCript objects such as
Boolean but also includes some useful
Over the coming weeks I’ll add more operators, both based on ECMAScript methods and custom functions that I have found useful.
The following modules are on NPM:
@tinynodes/rxjs-string operators that are built around the
String object in ECMAScript, for example with
There are also some boolean value operators such as
endsWith and extraction operators like
charAt, with plans
to add more useful utilities. For example
endWith returns a boolean value, but I also want to include an
that returns the original value instead (like
@tinynodes/rxjs-number operators that are built around the
Number object in ECMAScript, for example
This also includes
toString which uses Number.prototype.toLocaleString supports formatting such as currency.
@tinynodes/rxjs-boolean operators that are built around the
Boolean object in ECMAScript,
and are designed to help with filtering content from observables. Currently, there are two operators
firstTruthy it only returns
the first value, while
filterTruthy returns all truthy values.
@tinynodes/rxjs-utility is a custom module that provides some additional operators that don’t fit into the other packages but still have some usefulness.
Currently, there are two operators:
startWithTap- Will fire a callback method only on the first emission from an Observable
debounceWithQuery- Debounces an input such as a text input and passes it to a method that returns a value from a query (such as a search)