.. | |||
CHANGELOG.md | Loading last commit info... | ||
LICENSE | |||
README.md | |||
package.json |
README.md
get-own-enumerable-property-symbols ![Build Status](https://travis-ci.org/mightyiam/get-own-enumerable-property-symbols.svg?branch=master)
Returns an array of all enumerable symbol properties found directly upon a given object.
Similar to Object.getOwnPropertySymbols
but only enumerable keys.
import getOwnEnumPropSymbols from 'get-own-enumerable-property-symbols'
getOwnEnumPropSymbols({ [Symbol()]: undefined })
// [Symbol()]
getOwnEnumPropSymbols(Object.defineProperty({}, Symbol(), {enumerable: false}))
// []