Ramda JS Tutorial – Part 39 (T, F)

preview_player
Показать описание
The FALSE and the TRUE function.

Exploring all the functions of the JavaScript library Ramda JS and learning functional programming along the way.

⭐️ Support the channel on Patreon:

👾 In this video:
R.F (false)
R.T (true)
R.ifElse
R.identity
R.always (k, const)

🖥 Full playlist:
Рекомендации по теме
Комментарии
Автор

you did not change the validate function, by change the isValid function because javascript is a pass by ref language and you change the pointer of isValid var and not the pointer in the validate function it self, it still point to the old function :) ... for a lot of people the "pass by ref" and pointers is confuse .. so i want to "point" this out :) ps. this can be a good idea for a video, you are good to explain

zeocamo
Автор

R.ifElse(isValid, R.identity, R.F) the R.F and R.T is for cases where you do not care about the parameters and only want to return false or true, if you get a long chain of functions in a pipe/compose

zeocamo
visit shbcf.ru