Muqriz 48f16bfc3e initail first | vor 4 Monaten | |
---|---|---|
.. | ||
.github | vor 4 Monaten | |
test | vor 4 Monaten | |
.eslintrc | vor 4 Monaten | |
CHANGELOG.md | vor 4 Monaten | |
LICENSE | vor 4 Monaten | |
README.md | vor 4 Monaten | |
index.js | vor 4 Monaten | |
package.json | vor 4 Monaten |
Object.getOwnPropertyDescriptor
, but accounts for IE’s broken implementation.
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');
}