The lodash equivalent, which I missed, is something like this:
_.chain(inputSet)
.filter((x) => x >= 0)
.map((x) => x * 2)
.thru((e) => new Set(e))
.value()
I think it looks fine, works fine.