Internet-programming_PIbd-2.../Library/node_modules/gopd
2023-11-30 18:35:42 +04:00
..
.github i just have broken all of it 2023-11-30 18:35:42 +04:00
test i just have broken all of it 2023-11-30 18:35:42 +04:00
.eslintrc i just have broken all of it 2023-11-30 18:35:42 +04:00
CHANGELOG.md i just have broken all of it 2023-11-30 18:35:42 +04:00
index.js i just have broken all of it 2023-11-30 18:35:42 +04:00
LICENSE i just have broken all of it 2023-11-30 18:35:42 +04:00
package.json i just have broken all of it 2023-11-30 18:35:42 +04:00
README.md i just have broken all of it 2023-11-30 18:35:42 +04: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');
}