Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
69 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 ...
Storms786's user avatar
  • 123
3 votes
0 answers
252 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 ...
Troy Watt's user avatar
  • 191
1 vote
2 answers
78 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. ...
user2627546's user avatar
3 votes
1 answer
372 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: ...
1252748's user avatar
  • 177
5 votes
1 answer
288 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 ...
jxl118's user avatar
  • 51
3 votes
0 answers
96 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 ...
Adam McGrath's user avatar
11 votes
2 answers
666 views

FizzBuzz in JavaScript using Ramda

Just getting up to speed in Ramda, I have implemented this: ...
Keith Nicholas's user avatar