keys-in

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
704 B
Returns a list containing the names of all the properties of the supplied object, including prototype properties.
1 contributor
Install keys-in as a package?
Copied
npm i @bit/justin-capalbo.ramda.keys-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
keysIn (
obj:Object
) : Array

Returns a list containing the names of all the properties of the supplied object, including prototype properties. 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.keysIn(f); //=> ['x', 'y']
Argument
obj: Object

The object to extract properties from

Returns
Array

An array of the object's own and prototype properties.

Help and resources