|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
820 bytes
|
| Line | |
|---|
| 1 | # get-own-enumerable-property-symbols [](https://travis-ci.org/mightyiam/get-own-enumerable-property-symbols)
|
|---|
| 2 |
|
|---|
| 3 | Returns an array of all *enumerable* symbol properties found directly upon a given object.
|
|---|
| 4 |
|
|---|
| 5 | Similar to [`Object.getOwnPropertySymbols`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols)
|
|---|
| 6 | but only [enumerable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties) keys.
|
|---|
| 7 |
|
|---|
| 8 | ```js
|
|---|
| 9 | import getOwnEnumPropSymbols from 'get-own-enumerable-property-symbols'
|
|---|
| 10 |
|
|---|
| 11 | getOwnEnumPropSymbols({ [Symbol()]: undefined })
|
|---|
| 12 | // [Symbol()]
|
|---|
| 13 | getOwnEnumPropSymbols(Object.defineProperty({}, Symbol(), {enumerable: false}))
|
|---|
| 14 | // []
|
|---|
| 15 | ```
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.