SmartStorage/node_modules/gopd
13218645326 c4c497a65b 接口调试退料接收 2023-12-24 13:23:39 +08:00
..
.github 接口调试退料接收 2023-12-24 13:23:39 +08:00
test 接口调试退料接收 2023-12-24 13:23:39 +08:00
.eslintrc 接口调试退料接收 2023-12-24 13:23:39 +08:00
CHANGELOG.md 接口调试退料接收 2023-12-24 13:23:39 +08:00
LICENSE 接口调试退料接收 2023-12-24 13:23:39 +08:00
README.md 接口调试退料接收 2023-12-24 13:23:39 +08:00
index.js 接口调试退料接收 2023-12-24 13:23:39 +08:00
package.json 接口调试退料接收 2023-12-24 13:23:39 +08:00

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