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 Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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
Details
npm
2026-02-24 13:57:34 +00:00
1
Jordan Harband
MIT
latest
4.3 KiB
Assets (1)
Versions (1) View all
1.0.2 2026-02-24