has-property-descriptors
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Last updated 10 months ago by ljharb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install has-property-descriptors 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (10 months ago)

3 Versions

  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 6
Today 1
This Week 1
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (10)

© 2010 - cnpmjs.org x YWFE | Home | YWFE