Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Play ramdajs

node v6.17.1
version: 3.0.0
endpointsharetweet
var R = require('ramda'); const isPromise = R.both(R.is(Object), R.pipe(R.prop('then'), R.is(Function))); const propIsNull = R.curry(R.pipe(R.prop, R.isNil)); const hasPropThatNotNull = R.complement(propIsNull); const hasPropThatIsString = R.curry(R.pipe(R.prop, R.is(String))); const hasPropAThatIsString = hasPropThatIsString('a'); const hasPropThatIsString2 = R.o(R.o(R.is(String)))(R.prop); hasPropThatIsString('a');
Loading…

no comments

    sign in to comment