Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

has-property-descriptors

inspect-js180.2mMIT1.0.2TypeScript support: definitely-typed

Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.

property, descriptors, has, environment, env, defineProperty, getOwnPropertyDescriptor

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.0.2 - 2024-02-12

Commits

  • [Refactor] use es-define-property f93a8c8
  • [Dev Deps] update aud, npmignore, tape 42b0c9d
  • [Deps] update get-intrinsic 35e9b46

v1.0.1 - 2023-10-20

Commits

  • [meta] use npmignore to autogenerate an npmignore file 5bbf4da
  • [actions] update rebase action to use reusable workflow 3a5585b
  • [Dev Deps] update @ljharb/eslint-config, aud, tape e5c1212
  • [Dev Deps] update aud, tape e942917
  • [Deps] update get-intrinsic f4a44ec
  • [Deps] update get-intrinsic eeb275b

v1.0.0 - 2022-04-14

Commits