Mohammad Asif cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ
..
.github cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ
test cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ
.eslintrc cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ
CHANGELOG.md cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ
LICENSE cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ
README.md cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ
index.js cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ
package.json cf937194cb Removed un-waned things 1. 5 mēneši atpakaļ

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