1.0.0 • Published 6 years ago
@kingjs/descriptor.object.keys v1.0.0
@kingjs/descriptor.object.keys
Returns an array of own and inherited enumerable property names.
Usage
var keys = require('@kingjs/descriptor.object.keys');
var base = { inherited: null };
var derived = Object.create(base);
derived.own = null;
var result = keys.call(derived);
result.sort();
result;
result:
[ 'inherited', 'own' ]
API
declare function keys(
this: Descriptor
): any
Interfaces
Descriptor
: see @kingjs/descriptor
Parameters
this
: The descriptor whose own and inherited property names will be returned.
Returns
Returns an array containing the own and inherited enumerable property names of this
.
Install
With npm installed, run
$ npm install @kingjs/descriptor.object.keys
License
MIT
1.0.0
6 years ago