Very nice explanations, Rakhi, thanks!
You could even use some higher-order functions to create a slick little API for checks that we often use on arrays.
"use strict"; const is = searchedItem => item => item === searchedItem; const hasLengthGreaterThan = length => item => item.length > length; const fruits = ["banana", "pear", "apple", "strawberry"]; const hasStrawberry = fruits.some(is("strawberry")); // true const hasLongName = fruits.some(hasLengthGreaterThan(15)); // false
It would be great if you could cover higher order functions in detail.
Let me know what you think about that article @arvindsridharan I would love to have your insight!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Very nice explanations, Rakhi, thanks!
You could even use some higher-order functions to create a slick little API for checks that we often use on arrays.
It would be great if you could cover higher order functions in detail.
Let me know what you think about that article @arvindsridharan I would love to have your insight!
Higher-order functions & Why you should use them
Amin ・ Apr 3 ・ 8 min read