rss2/frontend/node_modules/gopd
2026-03-28 18:30:07 +01:00
..
.github go integration and wikipedia 2026-03-28 18:30:07 +01:00
test go integration and wikipedia 2026-03-28 18:30:07 +01:00
.eslintrc go integration and wikipedia 2026-03-28 18:30:07 +01:00
CHANGELOG.md go integration and wikipedia 2026-03-28 18:30:07 +01:00
gOPD.d.ts go integration and wikipedia 2026-03-28 18:30:07 +01:00
gOPD.js go integration and wikipedia 2026-03-28 18:30:07 +01:00
index.d.ts go integration and wikipedia 2026-03-28 18:30:07 +01:00
index.js go integration and wikipedia 2026-03-28 18:30:07 +01:00
LICENSE go integration and wikipedia 2026-03-28 18:30:07 +01:00
package.json go integration and wikipedia 2026-03-28 18:30:07 +01:00
README.md go integration and wikipedia 2026-03-28 18:30:07 +01:00
tsconfig.json go integration and wikipedia 2026-03-28 18:30:07 +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');
}