mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-05 06:29:14 +00:00
| .. | ||
| test | ||
| CHANGELOG.md | ||
| gOPD.d.ts | ||
| gOPD.js | ||
| index.d.ts | ||
| index.js | ||
| LICENSE | ||
| README.md | ||
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');
}
