Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

get-own-enumerable-property-symbols

3.0.2 • Public • Published

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

Install

npm i get-own-enumerable-property-symbols

DownloadsWeekly Downloads

3,515,041

Version

3.0.2

License

ISC

Unpacked Size

4.7 kB

Total Files

7

Last publish

Collaborators

  • avatar