These are chat archives for ramda/ramda

28th
Jul 2018
Daniel Rodríguez Rivero
@danielo515
Jul 28 2018 20:01
Hello, one fast question
How can I make a nested pick on ramda ?
Something like this:
````

Input:

S.ap({'name':S.I, profile: S.ap({ email: S.I }), bio: S.ap({birthday: S.ap({year: S.I})})}) 
({"name":"Octavia","phone":"202-746-5929 x495"
,"profile":{"email":"Lucas.Ritchie46@hotmail.com","avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/justinrhee/128.jpg"}
,"meta":{"column":"token","type":"varchar"}
,"bio":{"birthday":{"year":1983,"day":7}}})

Output:

{"bio": {"birthday": {"year": 1983}}, "name": "Octavia", "profile": {"email": "Lucas.Ritchie46@hotmail.com"}}
S is sanctuary
Lodash equivalent would be: pickFp(['name','profile.email','meta.column', 'bio.birthday.year'])