npm.io
3.0.2 • Published 6 years ago

get-own-enumerable-property-symbols

Licence
ISC
Version
3.0.2
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
7

get-own-enumerable-property-symbols Build Status

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}))
// []

Keywords