zheng 8213b23298 webpack před 23 hodinami
..
.github 8213b23298 webpack před 23 hodinami
test 8213b23298 webpack před 23 hodinami
.eslintrc 8213b23298 webpack před 23 hodinami
CHANGELOG.md 8213b23298 webpack před 23 hodinami
LICENSE 8213b23298 webpack před 23 hodinami
README.md 8213b23298 webpack před 23 hodinami
gOPD.d.ts 8213b23298 webpack před 23 hodinami
gOPD.js 8213b23298 webpack před 23 hodinami
index.d.ts 8213b23298 webpack před 23 hodinami
index.js 8213b23298 webpack před 23 hodinami
package.json 8213b23298 webpack před 23 hodinami
tsconfig.json 8213b23298 webpack před 23 hodinami

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