barbiturat
8/2/2017 - 8:41 PM

Getting prop value via ramda and fantasy-birds

Getting prop value via ramda and fantasy-birds

//const fn = obj => key => key => propOr(key, key, obj);
const fn = warblerstar(robinstar(propOr));

const src = {
  some: 22,
  other: 33
};

fn(src, 'some'); //-> 22
fn(src, 'qqq'); //-> 'qqq'