Share your code. Components are building blocks, you are the architect.

utils/obj-of
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Creates an object containing a single key:value pair.

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/obj-of in your project
npm i @bit/bit.ramda.utils.obj-of
Copied

objOf (key:String, val:*) : Object

Creates an object containing a single key:value pair.

Example

var matchPhrases = R.compose(
       R.objOf('must'),
       R.map(R.objOf('match_phrase'))
     );
     matchPhrases(['foo', 'bar', 'baz']); //=> {must: [{match_phrase: 'foo'}, {match_phrase: 'bar'}, {match_phrase: 'baz'}]}

Arguments

key: String

val: *

Returns

Object