get-own-enumerable-property-symbols

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

ISC 7 个版本
安装
npm install get-own-enumerable-property-symbols
yarn add get-own-enumerable-property-symbols
pnpm add get-own-enumerable-property-symbols
bun add get-own-enumerable-property-symbols
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}))
// []
版本列表
3.0.2 2019-12-10
3.0.1 2019-10-04
3.0.0 2018-04-17
2.0.1 2017-06-25
2.0.0 2017-06-25
1.0.1 2016-11-23
1.0.0 2016-11-23