Internet_Programming_Librar.../lab2/all/node_modules/gopd
2024-01-06 20:01:57 +04:00
..
.github all lab2 2024-01-06 20:01:57 +04:00
test all lab2 2024-01-06 20:01:57 +04:00
.eslintrc all lab2 2024-01-06 20:01:57 +04:00
CHANGELOG.md all lab2 2024-01-06 20:01:57 +04:00
index.js all lab2 2024-01-06 20:01:57 +04:00
LICENSE all lab2 2024-01-06 20:01:57 +04:00
package.json all lab2 2024-01-06 20:01:57 +04:00
README.md all lab2 2024-01-06 20:01:57 +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');
}