Compose Function JavaScript

preview_player
Показать описание
A compose function is when the results of one function are passed as an argument to another function. They are easy to make once you see an example. Take a look!
Рекомендации по теме
Комментарии
Автор

Do you have any insight on how to make this work with any number of functions? I'm thinking of converting the arguments object to an array of functions, and then looping through them starting from the last one, getting its return value, and then passing it down the chain along with the next output.

earlgrey
join shbcf.ru