From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- .../get-own-enumerable-property-symbols/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 node_modules/get-own-enumerable-property-symbols/README.md (limited to 'node_modules/get-own-enumerable-property-symbols/README.md') diff --git a/node_modules/get-own-enumerable-property-symbols/README.md b/node_modules/get-own-enumerable-property-symbols/README.md new file mode 100644 index 000000000..102ae8aa7 --- /dev/null +++ b/node_modules/get-own-enumerable-property-symbols/README.md @@ -0,0 +1,17 @@ +# 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) + +Returns an array of all *enumerable* symbol properties found directly upon a given object. + +Similar to [`Object.getOwnPropertySymbols`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols) +but only [enumerable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties) keys. + +```js +const getOwnEnumPropSymbols = require('get-own-enumerable-property-symbols') + +getOwnEnumPropSymbols({ [Symbol()]: undefined }) +// [Symbol()] +getOwnEnumPropSymbols(Object.defineProperty({}, Symbol(), {enumerable: false})) +// [] +``` + +[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) -- cgit v1.2.3