lxy 1c63d88d40 demo 2 anni fa
..
.github 1c63d88d40 demo 2 anni fa
test 1c63d88d40 demo 2 anni fa
.eslintrc 1c63d88d40 demo 2 anni fa
CHANGELOG.md 1c63d88d40 demo 2 anni fa
LICENSE 1c63d88d40 demo 2 anni fa
README.md 1c63d88d40 demo 2 anni fa
index.js 1c63d88d40 demo 2 anni fa
package.json 1c63d88d40 demo 2 anni fa

README.md

gopd Version Badge

github actions coverage License Downloads

npm badge

Object.getOwnPropertyDescriptor, but accounts for IE's broken implementation.

Usage

var gOPD = require('gopd');
var assert = require('assert');

if (gOPD) {
	assert.equal(typeof gOPD, 'function', 'descriptors supported');
	// use gOPD like Object.getOwnPropertyDescriptor here
} else {
	assert.ok(!gOPD, 'descriptors not supported');
}