Beginning Functional JavaScript: Uncover the Concepts of Functional Programming with EcmaScript 8 by Srikanth Machiraju & Anto Aravinth

Beginning Functional JavaScript: Uncover the Concepts of Functional Programming with EcmaScript 8 by Srikanth Machiraju & Anto Aravinth

Author:Srikanth Machiraju & Anto Aravinth [Srikanth Machiraju]
Language: eng
Format: epub
Publisher: Apress
Published: 2018-12-04T22:00:00+00:00


let titleAndAuthorForGoodBooks = compose(mapTitleAndAuthor,queryGoodBooks)

Let’s take some time to understand the position of the partial function in the current problem domain. As mentioned, the compose function can only compose a function that takes one argument. However, both filter and map take two arguments, so we cannot compose them directly.

That’s the reason we have used the partial function to partially apply the second argument for both map and filter, as you can see here:partial(filter,undefined,filterGoodBooks);

partial(map,undefined,projectTitleAndAuthor)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.