keys

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

Returns a list containing the names of all the enumerable own properties of the supplied object. Note that the order of the output array is not guaranteed to be consistent across different JS platforms.

Example
R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
Argument
obj: Object

The object to extract properties from

Returns
Array

An array of the object's own properties.

Help and resources