htc 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
..
.github 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
test 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
.eslintrc 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
CHANGELOG.md 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
LICENSE 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
README.md 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
gOPD.d.ts 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
gOPD.js 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
index.d.ts 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
index.js 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes
tsconfig.json 7ca38fdcbb 善行少年PC端首次提交(基础版) hai 1 mes

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