Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ganuz/get-own-property-descriptor

yisraelx28MIT0.1.1TypeScript support: included

Get Own Property Descriptor is package from Ganuz library

descriptor, descriptors, modular, modules, ponyfill, properties, property, reflect, reflection, utilities, utils

readme

@ganuz/get-own-property-descriptor

Source Code Version MIT License Bundle Size TypeScript

Get Own Property Descriptor is package from Ganuz library

Install

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

Or

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

Use

Module

import {
  default as getOwnPropertyDescriptor
} from '@ganuz/get-own-property-descriptor';

Browser

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

Examples

 getOwnPropertyDescriptor(null, 'foo'); // throw TypeError
 getOwnPropertyDescriptor('foo', 0); // throw TypeError
 getOwnPropertyDescriptor({foo: 'bar'}, 'foo'); // => PropertyDescriptor{...}
 getOwnPropertyDescriptor({}, 'foo'); // => undefined
 getOwnPropertyDescriptor(Object.create({foo: 'bar'}), 'foo'); // => undefined

@ganuz/get-own-property-descriptor/polyfill

Module

  import '@ganuz/get-own-property-descriptor/polyfill';

Browser

<script src="https://unpkg.com/@ganuz/get-own-property-descriptor/polyfill/bundle.umd.min.js"></script>

License

Copyright © Yisrael Eliev, Licensed under the MIT license.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.1.1 (2019-04-16)

Note: Version bump only for package @ganuz/get-own-property-descriptor

0.1.0 (2019-04-02)

Features