Mohammad Asif cf937194cb Removed un-waned things 1. 5 mesi fa
..
.github cf937194cb Removed un-waned things 1. 5 mesi fa
test cf937194cb Removed un-waned things 1. 5 mesi fa
.eslintrc cf937194cb Removed un-waned things 1. 5 mesi fa
CHANGELOG.md cf937194cb Removed un-waned things 1. 5 mesi fa
LICENSE cf937194cb Removed un-waned things 1. 5 mesi fa
README.md cf937194cb Removed un-waned things 1. 5 mesi fa
index.js cf937194cb Removed un-waned things 1. 5 mesi fa
package.json cf937194cb Removed un-waned things 1. 5 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');
}