You don’t need lodash or a new operator for the example provided:
departments
.flatMap(d => d.employees)
.map(e => e.salary)
.reduce((p, v) => Math.max(p, v), 0)
That said, the pipe operator is nice because it allows similar chaining patterns on subjects that are not arrays, as shown in the proposal’s README: https://github.com/tc39/proposal-pipeline-operator/blob/mast...