@ganuz/get-own-property-descriptors
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@ganuz/get-own-property-descriptors

Source Code Version MIT License Bundle Size TypeScript

Get Own Property Descriptors is package from Ganuz library

Install

$ yarn add @ganuz/get-own-property-descriptors

Or

$ npm install --save @ganuz/get-own-property-descriptors

Use

Module

import {
  default as getOwnPropertyDescriptors
} from '@ganuz/get-own-property-descriptors';

Browser

<script src="https://unpkg.com/@ganuz/get-own-property-descriptors/bundle.umd.min.js"></script>
let {
  getOwnPropertyDescriptors
} = G;

Examples

 getOwnPropertyDescriptors(null); // throw TypeError
 getOwnPropertyDescriptors({}); // => {}
 getOwnPropertyDescriptors([1]); // => {0: Descriptor{…}, length: Descriptor{…}}
 getOwnPropertyDescriptors({Symbol('foo'): 'bar', some(){}, get color(){}}); // => {Symbol('foo'): Descriptor{…}, some: Descriptor{…}, color: Descriptor{…}}
 getOwnPropertyDescriptors(Object.create({foo: 'bar'}, {color: {value: 'blue', enumerable: false}})); // => {color: Descriptor{…}}

License

Copyright © Yisrael Eliev, Licensed under the MIT license.

Package Sidebar

Install

npm i @ganuz/get-own-property-descriptors

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

78.5 kB

Total Files

15

Last publish

Collaborators

  • yisraelx