codigo0/backend/node_modules/gopd
planetazuzu 0201f16cf4
Some checks are pending
Auto Deploy to Server / deploy (push) Waiting to run
Update lab configuration 2026-03-22
2026-03-22 22:50:29 +01:00
..
.github Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
test Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
.eslintrc Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
CHANGELOG.md Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
gOPD.d.ts Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
gOPD.js Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
index.d.ts Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
index.js Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
LICENSE Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
package.json Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
README.md Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
tsconfig.json Update lab configuration 2026-03-22 2026-03-22 22:50:29 +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');
}