Closed sergey-lapin closed 8 years ago
Hi Sergey, can you give an example of channels_list.json
?
But if the input is an object, any of these will do:
R --js '(x => x.channels)'
(you were likely missing the --js
flag, ramda-cli interprets as LiveScript by default)R --js 'prop("channels")'
R .channels
Ahh thanks, you right just missed --js flag!
Hi, thanks for your awesome lib. I am wondering if there any way to do destructuring on some object with it. For example:
cat channels_list.json | R keys
- gives meAnd I want to get
channels
cat channels_list.json | R '(x => x.channels)'
- does not work