caoge c760052ff9 机车状态修改 hai 8 meses
..
.github c760052ff9 机车状态修改 hai 8 meses
test c760052ff9 机车状态修改 hai 8 meses
.eslintrc c760052ff9 机车状态修改 hai 8 meses
CHANGELOG.md c760052ff9 机车状态修改 hai 8 meses
LICENSE c760052ff9 机车状态修改 hai 8 meses
README.md c760052ff9 机车状态修改 hai 8 meses
index.js c760052ff9 机车状态修改 hai 8 meses
package.json c760052ff9 机车状态修改 hai 8 meses

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