A backwards-compatible way of streamlining chained function calls in a readable and functional manner
const pipe = require('pipe-js')
const hello = 'hello'
const capitalize = str => str[0].toUpperCase() + str.substring(1)
const duplicate = str => `${str}-${str}`
const exclaim = str => str + '!'
pipe(hello).through(duplicate, capitalize, [String.prototype.concat, ' world'], exclaim) // Hello-hello world!