binance_bot/node_modules/gopd
2025-01-07 19:06:55 +01:00
..
.github [INIT] initial commit 2025-01-07 19:06:55 +01:00
test [INIT] initial commit 2025-01-07 19:06:55 +01:00
.eslintrc [INIT] initial commit 2025-01-07 19:06:55 +01:00
CHANGELOG.md [INIT] initial commit 2025-01-07 19:06:55 +01:00
index.js [INIT] initial commit 2025-01-07 19:06:55 +01:00
LICENSE [INIT] initial commit 2025-01-07 19:06:55 +01:00
package.json [INIT] initial commit 2025-01-07 19:06:55 +01:00
README.md [INIT] initial commit 2025-01-07 19:06:55 +01:00

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