to-pairs-in

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
707 B
Converts an object into an array of key, value arrays.
1 contributor
Install to-pairs-in as a package?
Copied
npm i @bit/justin-capalbo.ramda.to-pairs-in
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
toPairsIn (
obj:Object
) : Array

Converts an object into an array of key, value arrays. The object’s own properties and prototype properties are used. Note that the order of the output array is not guaranteed to be consistent across different JS platforms.

Example
const F = function() { this.x = 'X'; };
     F.prototype.y = 'Y';
     const f = new F();
     R.toPairsIn(f); //=> [['x','X'], ['y','Y']]
Argument
obj: Object

The object to extract from

Returns
Array

An array of key, value arrays from the object's own and prototype properties.

Help and resources