mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
davhojt
75b096e5e7
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
README.md
Flow
Instructions
Create the function named flow
that will 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