/ etherpad / src / plugin_packages / dunder-proto / node_modules / gopd /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/3 months ago -  
[TXT]CHANGELOG.md40 years ago3.0K 
[   ]LICENSE40 years ago1.0K 
[TXT]README.md40 years ago1.5K 
[TXT]gOPD.d.ts40 years ago 42  
[   ]gOPD.js40 years ago 97  
[TXT]index.d.ts40 years ago173  
[   ]index.js40 years ago206  
[   ]package.json40 years ago2.0K 
[   ]tsconfig.json40 years ago116  
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