Snippets Collections
function pipe(...functions) {
    return (...args) => functions.reduce((acc, curr, idx) => idx === 0 ? curr(...args) : curr(acc), args)
}
star

Sun Dec 26 2021 19:54:27 GMT+0000 (Coordinated Universal Time)

#javascript #function_manipulation

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension