Mohammad Asif cf937194cb Removed un-waned things 1. hai 1 ano
..
.github cf937194cb Removed un-waned things 1. hai 1 ano
test cf937194cb Removed un-waned things 1. hai 1 ano
.eslintrc cf937194cb Removed un-waned things 1. hai 1 ano
CHANGELOG.md cf937194cb Removed un-waned things 1. hai 1 ano
LICENSE cf937194cb Removed un-waned things 1. hai 1 ano
README.md cf937194cb Removed un-waned things 1. hai 1 ano
index.js cf937194cb Removed un-waned things 1. hai 1 ano
package.json cf937194cb Removed un-waned things 1. hai 1 ano

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');
}