Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js pipe

const pipe = (...fns) =>
    fns.reduce(
      (f, g) =>
        (...args) =>
          g(f(...args))
    )
 
PREVIOUS NEXT
Tagged: #js #pipe
ADD COMMENT
Topic
Name
4+7 =