lhl 6ff0e96ad3 8-4-1 | 1 year ago | |
---|---|---|
.. | ||
lib | 1 year ago | |
CHANGELOG.md | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
package.json | 1 year ago |
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}))
// []