get-own-enumerable-property-symbols
TypeScript icon, indicating that this package has built-in type declarations

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

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i get-own-enumerable-property-symbols

    Weekly Downloads

    7,074,090

    Version

    3.0.2

    License

    ISC

    Unpacked Size

    4.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • mightyiam