学习?学个屁 06c63c15cc 初始化提交 před 4 týdny
..
.github 06c63c15cc 初始化提交 před 4 týdny
test 06c63c15cc 初始化提交 před 4 týdny
.eslintrc 06c63c15cc 初始化提交 před 4 týdny
CHANGELOG.md 06c63c15cc 初始化提交 před 4 týdny
LICENSE 06c63c15cc 初始化提交 před 4 týdny
README.md 06c63c15cc 初始化提交 před 4 týdny
gOPD.d.ts 06c63c15cc 初始化提交 před 4 týdny
gOPD.js 06c63c15cc 初始化提交 před 4 týdny
index.d.ts 06c63c15cc 初始化提交 před 4 týdny
index.js 06c63c15cc 初始化提交 před 4 týdny
package.json 06c63c15cc 初始化提交 před 4 týdny
tsconfig.json 06c63c15cc 初始化提交 před 4 týdny

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