186 GB
47,027 files
Updated 3 months ago
Name
Size
.github
test
.eslintrc224 Bytes
xet
CHANGELOG.md3.08 kB
xet
LICENSE1.07 kB
xet
README.md1.56 kB
xet
gOPD.d.ts42 Bytes
xet
gOPD.js97 Bytes
xet
index.d.ts173 Bytes
xet
index.js206 Bytes
xet
package.json2.07 kB
xet
tsconfig.json116 Bytes
xet
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');
}
Total size
186 GB
Files
47,027
Last updated
May 1
Pre-warmed CDN
US EU US EU

Contributors