get-own-enumerable-property-symbols

2018-12-08 admin

get-own-enumerable-property-symbols是什么

什么是get-own-enumerable-property-symbols,Returns an array of all enumerable symbol properties found directly upon a given object

get-own-enumerable-property-symbols使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-47627.html

文章标题:get-own-enumerable-property-symbols

回到顶部