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