Buckets:
186 GB
47,027 files
Updated 3 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .github | 1 items | ||
| test | 1 items | ||
| .eslintrc | 224 Bytes xet | 20984f4c | |
| CHANGELOG.md | 3.08 kB xet | 7ea4aede | |
| LICENSE | 1.07 kB xet | c9066172 | |
| README.md | 1.56 kB xet | ddde76f4 | |
| gOPD.d.ts | 42 Bytes xet | 8764a34f | |
| gOPD.js | 97 Bytes xet | 31307a2f | |
| index.d.ts | 173 Bytes xet | df49eadd | |
| index.js | 206 Bytes xet | e30af3f7 | |
| package.json | 2.07 kB xet | 6fd22bdd | |
| tsconfig.json | 116 Bytes xet | 46720049 |
gopd
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
