has-property-descriptors <sup>Version Badge</sup>

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

has-property-descriptors - Installation

To install has-property-descriptors via this registry, you'll need to install via the --registry parameter with your package manager.

n

NPM

npm install has-property-descriptors --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Yarn

yarn config set registry https://js.registry.sudovanilla.org
yarn install has-property-descriptors

Learn more about the config option.

PNPM

pnpm install has-property-descriptors --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Bun Logo

Bun

bun install has-property-descriptors --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Learn more about setting this up in your bunfig.toml configuration.


For Deno, add the following to your .npmrc file in your directory:

registry="https://js.registry.sudovanilla.org"

Then run the deno install command.

has-property-descriptors - Download

Download Tarball (v1.0.2)

Integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==
SHASUM 963ed7d071dc7bf5f084c5bfbe0d1b6222586854
Tarball https://js.registry.sudovanilla.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz