Socket
Socket
Sign inDemoInstall

has-property-descriptors

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    has-property-descriptors

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


Version published
Weekly downloads
40M
decreased by-0.99%
Maintainers
1
Install size
146 kB
Created
Weekly downloads
 

Changelog

Source

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

Readme

Source

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

Keywords

FAQs

Last updated on 13 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc