パッケージの詳細

get-own-enumerable-property-symbols

mightyiam36mISC3.0.2

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

get, enumerable, symbol, property

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

更新履歴

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.0.2 (2019-12-10)

Bug Fixes

3.0.1 (2019-10-04)