JSPM

own-enumerable-keys

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 161
  • Score
    100M100P100Q90612F
  • License MIT

gets own enumerable property names and symbols

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

frozen

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

NPM

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.