siwat 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu
..
.github 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu
test 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu
.eslintrc 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu
CHANGELOG.md 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu
LICENSE 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu
README.md 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu
index.js 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu
package.json 6e31eb48a7 fix:相敏敏webpack 1 tahun lalu

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