mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 08:25:14 +00:00
.. | ||
lib | ||
CHANGELOG.md | ||
LICENSE | ||
package.json | ||
README.md |
get-own-enumerable-property-symbols
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}))
// []