public/subjects/flow
eslopfer e92b0d5369 docs(flow): Add missing word to the description 2022-08-29 16:17:03 +01:00
..
README.md docs(flow): Add missing word to the description 2022-08-29 16:17:03 +01:00

README.md

Flow

Instructions

Create the function named flow that will act like the _.flow([funcs]) from lodash.

Example

const square = (nbr) => nbr * nbr
const add2Numbers = (nbr1, nbr2) => nbr1 + nbr2

const flowedFunctions = flow([add2Numbers, square])
flowedFunctions(2, 3) // -> 25

Notions