PIbd-21_Zhirnova_A._E._Inte.../3 proba/node_modules/gopd
2023-12-06 21:05:45 +03:00
..
.github Lab3new 2023-12-06 21:05:45 +03:00
test Lab3new 2023-12-06 21:05:45 +03:00
.eslintrc Lab3new 2023-12-06 21:05:45 +03:00
CHANGELOG.md Lab3new 2023-12-06 21:05:45 +03:00
index.js Lab3new 2023-12-06 21:05:45 +03:00
LICENSE Lab3new 2023-12-06 21:05:45 +03:00
package.json Lab3new 2023-12-06 21:05:45 +03:00
README.md Lab3new 2023-12-06 21:05:45 +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');
}