Docker-ImageManagementOptim.../node_modules/gopd
adelyaou b37df7e84e Image management and optimization 2025-08-11 17:03:28 +07:00
..
.github Image management and optimization 2025-08-11 17:03:28 +07:00
test Image management and optimization 2025-08-11 17:03:28 +07:00
.eslintrc Image management and optimization 2025-08-11 17:03:28 +07:00
CHANGELOG.md Image management and optimization 2025-08-11 17:03:28 +07:00
LICENSE Image management and optimization 2025-08-11 17:03:28 +07:00
README.md Image management and optimization 2025-08-11 17:03:28 +07:00
gOPD.d.ts Image management and optimization 2025-08-11 17:03:28 +07:00
gOPD.js Image management and optimization 2025-08-11 17:03:28 +07:00
index.d.ts Image management and optimization 2025-08-11 17:03:28 +07:00
index.js Image management and optimization 2025-08-11 17:03:28 +07:00
package.json Image management and optimization 2025-08-11 17:03:28 +07:00
tsconfig.json Image management and optimization 2025-08-11 17:03:28 +07:00

README.md

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