zyh f2307604ee z 1 gadu atpakaļ
..
.github f2307604ee z 1 gadu atpakaļ
test f2307604ee z 1 gadu atpakaļ
.eslintrc f2307604ee z 1 gadu atpakaļ
CHANGELOG.md f2307604ee z 1 gadu atpakaļ
LICENSE f2307604ee z 1 gadu atpakaļ
README.md f2307604ee z 1 gadu atpakaļ
index.js f2307604ee z 1 gadu atpakaļ
package.json f2307604ee z 1 gadu 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');
}