Filter duplicates from a stream based on a hashing function. By default, this hashing function is:
sha256sum(JSON.stringify(doc))Where you can supply your own hashing function.
Remove duplicates from a stream based on a hashing function
JavaScriptMIT