ultimatepos/Modules/Communication/node_modules/gopd
2026-07-10 08:54:10 +03:30
..
.github Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
test Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
.eslintrc Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
CHANGELOG.md Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
gOPD.d.ts Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
gOPD.js Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
index.d.ts Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
index.js Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
LICENSE Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
package.json Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
README.md Sync production UltimatePOS from server 2026-07-10 08:54:10 +03:30
tsconfig.json Sync production UltimatePOS from server 2026-07-10 08:54:10 +03: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');
}