has-property-descriptors (1.0.2)
Published 2026-02-24 13:57:34 +00:00 by atheaadmin
Installation
registry=npm install has-property-descriptors@1.0.2"has-property-descriptors": "1.0.2"About this package
has-property-descriptors 
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Example
var hasPropertyDescriptors = require('has-property-descriptors');
var assert = require('assert');
assert.equal(hasPropertyDescriptors(), true); // will be `false` in IE 6-8, and ES5 engines
// Arrays can not have their length `[[Defined]]` in some engines
assert.equal(hasPropertyDescriptors.hasArrayLengthDefineBug(), false); // will be `true` in Firefox 4-22, and node v0.6
Tests
Simply clone the repo, npm install, and run npm test
Dependencies
Dependencies
| ID | Version |
|---|---|
| es-define-property | ^1.0.0 |
Development Dependencies
| ID | Version |
|---|---|
| @ljharb/eslint-config | ^21.1.0 |
| aud | ^2.0.4 |
| auto-changelog | ^2.4.0 |
| eslint | =8.8.0 |
| evalmd | ^0.0.19 |
| in-publish | ^2.0.1 |
| npmignore | ^0.3.1 |
| nyc | ^10.3.2 |
| safe-publish-latest | ^2.0.0 |
| tape | ^5.7.4 |
Keywords
property
descriptors
has
environment
env
defineProperty
getOwnPropertyDescriptor
