nitowa 1dae68b1c7 init 1年前
..
.github init 1年前
test init 1年前
.eslintrc init 1年前
CHANGELOG.md init 1年前
LICENSE init 1年前
README.md init 1年前
index.js init 1年前
package.json init 1年前

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