Node/node_modules/gopd
2025-02-15 00:34:31 +03:00
..
.github Oluşturuldu 2025-02-15 00:34:31 +03:00
test Oluşturuldu 2025-02-15 00:34:31 +03:00
.eslintrc Oluşturuldu 2025-02-15 00:34:31 +03:00
CHANGELOG.md Oluşturuldu 2025-02-15 00:34:31 +03:00
gOPD.d.ts Oluşturuldu 2025-02-15 00:34:31 +03:00
gOPD.js Oluşturuldu 2025-02-15 00:34:31 +03:00
index.d.ts Oluşturuldu 2025-02-15 00:34:31 +03:00
index.js Oluşturuldu 2025-02-15 00:34:31 +03:00
LICENSE Oluşturuldu 2025-02-15 00:34:31 +03:00
package.json Oluşturuldu 2025-02-15 00:34:31 +03:00
README.md Oluşturuldu 2025-02-15 00:34:31 +03:00
tsconfig.json Oluşturuldu 2025-02-15 00:34:31 +03: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');
}