Questions tagged [ramda.js]
JavaScript library for functional programming that allows for easy functional composition.
9 questions
1
vote
1
answer
87
views
Join a JSON object of arrays and reduce down to one key [closed]
Given that I have a dataset as follows:
{ 1: ['Extremely Tall'], 2: ['Tall'], 3: ['Medium', 'Low'], 4: ['Dwarf'] }
and I receive a value (e.g. Tall or Medium) I ...
2
votes
2
answers
158
views
Ramda - Forming a string based on array of word positions
I saw this question and wondered how it'd be best to accomplish this using Ramda.
I'm new to the library so I thought it'd be an interesting learning exercise.
I have a working solution but it seems ...
3
votes
0
answers
259
views
Refactored calls to an api using Ramda.js
This is the original code for accessing a service endpoint that returns information about a product. The exported methods of this module each take a single param of "id" and returns a Promise.
I've ...
1
vote
1
answer
526
views
Group orders with Ramda
I made some crude code using RamdaJS to essentially group orders by their states. There are some nested structures. Currently, I have a working code, but I wondering if Ramda can perhaps help to clean ...
1
vote
2
answers
93
views
Getting a string from a range of possible paths
I have a scenario where I need to grab the first occurrence of a string from an object, but only if the match occurs in one of the path's that have been pre-defined.
...
3
votes
1
answer
392
views
Using Ramda in point-free way to transform data into new format
Recently I asked on SO about using point free methods to rearrange some data
The idea was to turn data in this format:
...
5
votes
1
answer
295
views
Voting app in JavaScript using Ramda
I'm just learning functional programming in JavaScript using Ramda.
I took this tutorial and implemented the server core.js component using Ramda.
The idea is that we'll have a collection of things ...
3
votes
0
answers
102
views
OAuth 1.0 signature using Ramda
I created an OAuth 1.0 signature generator using Ramda based on this.
I'm just getting to grips with it, so was wondering if someone more familiar with Ramda and functional programming would give me ...
11
votes
2
answers
690
views
FizzBuzz in JavaScript using Ramda
Just getting up to speed in Ramda, I have implemented this:
...