Package Exports
- own-enumerable-keys
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (own-enumerable-keys) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
own-enumerable-keys
Gets own property names and Symbols that are enumerable.
Implementation from Sindre Sorhus' object-assign ponyfill.
Install
npm install own-enumerable-keys --save
Example
var keys = require('own-enumerable-keys')
var zip = Symbol('zip')
var obj = {
foo: 'bar',
blah: 'foo',
[zip]: 'foobar'
}
keys(obj)
//=> ['foo', 'blah', Symbol(zip)]
Usage
keys = ownEnumerableKeys(obj)
For the given obj
, returns a list of keys which represent its enumerable and own property and Symbol names.
See also:
License
MIT, see LICENSE.md for details.