/ c4f / front / node_modules / gopd /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/8 months ago -  
[TXT]CHANGELOG.md8 months ago1.5K 
[   ]LICENSE8 months ago1.0K 
[TXT]README.md8 months ago1.5K 
[   ]index.js8 months ago263  
[   ]package.json8 months ago1.8K 
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');
}
Apache/2.4.38 (Debian) Server at www.karls.computer Port 80