![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | test/ | a year ago | - | |
![]() | CHANGELOG.md | a year ago | 1.5K | |
![]() | LICENSE | a year ago | 1.0K | |
![]() | README.md | a year ago | 1.5K | 595aea1 more query options + view options [كارل مبارك] |
![]() | index.js | a year ago | 263 | |
![]() | package.json | a year ago | 1.8K | afd0ccc remove unused [كارل مبارك] |
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');
}