1 contributor
Like
Install invert-obj as a package?
Copied
npm i @bit/justin-capalbo.ramda.invert-obj
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
invertObj (
obj:
) : Object
Object
Returns a new object with the keys of the given object as values, and the values of the given object, which are coerced to strings, as keys. Note that the last key found is preferred when handling the same value.
Example
Argument
obj:
Object
The object or array to invert
Returns
Object
out A new object