web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
820 B

  1. # get-own-enumerable-property-symbols [![Build Status](https://travis-ci.org/mightyiam/get-own-enumerable-property-symbols.svg?branch=master)](https://travis-ci.org/mightyiam/get-own-enumerable-property-symbols)
  2. Returns an array of all *enumerable* symbol properties found directly upon a given object.
  3. Similar to [`Object.getOwnPropertySymbols`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols)
  4. but only [enumerable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties) keys.
  5. ```js
  6. import getOwnEnumPropSymbols from 'get-own-enumerable-property-symbols'
  7. getOwnEnumPropSymbols({ [Symbol()]: undefined })
  8. // [Symbol()]
  9. getOwnEnumPropSymbols(Object.defineProperty({}, Symbol(), {enumerable: false}))
  10. // []
  11. ```