To use the sequenceEqual
function from the RxJS library in JavaScript you need to follow these steps:
sequenceEqual
function from the rxjs/operators
module:index.tsx48 chars2 lines
index.tsx98 chars5 lines
sequenceEqual
function with the two streams as arguments to compare their emitted values:index.tsx135 chars10 lines
The isEqual$
observable will emit a boolean value true
if the values emitted in both streams are equal, and false
otherwise.
gistlibby LogSnag