siwat 6e31eb48a7 fix:相敏敏webpack hai 1 ano
..
.github 6e31eb48a7 fix:相敏敏webpack hai 1 ano
test 6e31eb48a7 fix:相敏敏webpack hai 1 ano
.eslintrc 6e31eb48a7 fix:相敏敏webpack hai 1 ano
CHANGELOG.md 6e31eb48a7 fix:相敏敏webpack hai 1 ano
LICENSE 6e31eb48a7 fix:相敏敏webpack hai 1 ano
README.md 6e31eb48a7 fix:相敏敏webpack hai 1 ano
index.js 6e31eb48a7 fix:相敏敏webpack hai 1 ano
package.json 6e31eb48a7 fix:相敏敏webpack 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');
}