get-own-enumerable-property-symbols

Returns an array of all enumerable symbol properties found directly upon a given object

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
get-own-enumerable-property-symbols
763.0.25 years ago8 years agoMinified + gzip package size for get-own-enumerable-property-symbols in KB

Readme

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