Ramda JS Tutorial - Part 39 (T, F)

Поділитися
Вставка
  • Опубліковано 25 лис 2018
  • 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:
    / christopherokhravi
    👾 In this video:
    R.F (false)
    R.T (true)
    R.ifElse
    R.identity
    R.always (k, const)
    🖥 Full playlist:
    • Ramda JS Tutorial

КОМЕНТАРІ • 2

  • @zeocamo
    @zeocamo 5 років тому +1

    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
    @zeocamo 5 років тому +1

    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