AJNB 376d9cfaf8 hjj 2 mesi fa
..
.github 376d9cfaf8 hjj 2 mesi fa
test 376d9cfaf8 hjj 2 mesi fa
.eslintrc 376d9cfaf8 hjj 2 mesi fa
CHANGELOG.md 376d9cfaf8 hjj 2 mesi fa
LICENSE 376d9cfaf8 hjj 2 mesi fa
README.md 376d9cfaf8 hjj 2 mesi fa
index.js 376d9cfaf8 hjj 2 mesi fa
package.json 376d9cfaf8 hjj 2 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');
}