dld_backend/node_modules/gopd
2025-10-30 12:13:02 +05:30
..
.github v0.0.1 2025-10-30 12:13:02 +05:30
test v0.0.1 2025-10-30 12:13:02 +05:30
.eslintrc v0.0.1 2025-10-30 12:13:02 +05:30
CHANGELOG.md v0.0.1 2025-10-30 12:13:02 +05:30
gOPD.d.ts v0.0.1 2025-10-30 12:13:02 +05:30
gOPD.js v0.0.1 2025-10-30 12:13:02 +05:30
index.d.ts v0.0.1 2025-10-30 12:13:02 +05:30
index.js v0.0.1 2025-10-30 12:13:02 +05:30
LICENSE v0.0.1 2025-10-30 12:13:02 +05:30
package.json v0.0.1 2025-10-30 12:13:02 +05:30
README.md v0.0.1 2025-10-30 12:13:02 +05:30
tsconfig.json v0.0.1 2025-10-30 12:13:02 +05:30

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