Ben 34809681ae fix 11 mesi fa
..
.github 34809681ae fix 11 mesi fa
test 34809681ae fix 11 mesi fa
.eslintrc 34809681ae fix 11 mesi fa
CHANGELOG.md 34809681ae fix 11 mesi fa
LICENSE 34809681ae fix 11 mesi fa
README.md 34809681ae fix 11 mesi fa
index.js 34809681ae fix 11 mesi fa
package.json 34809681ae fix 11 mesi 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');
}