bifocal/node_modules/es-define-property
Jean Viscogliosi-Pate f8836547f1 Broken socials 2024-06-19 06:56:58 -07:00
..
.github Broken socials 2024-06-19 06:56:58 -07:00
test Broken socials 2024-06-19 06:56:58 -07:00
.eslintrc Broken socials 2024-06-19 06:56:58 -07:00
.nycrc Broken socials 2024-06-19 06:56:58 -07:00
CHANGELOG.md Broken socials 2024-06-19 06:56:58 -07:00
LICENSE Broken socials 2024-06-19 06:56:58 -07:00
README.md Broken socials 2024-06-19 06:56:58 -07:00
index.d.ts Broken socials 2024-06-19 06:56:58 -07:00
index.js Broken socials 2024-06-19 06:56:58 -07:00
package.json Broken socials 2024-06-19 06:56:58 -07:00
tsconfig.json Broken socials 2024-06-19 06:56:58 -07:00

README.md

es-define-property Version Badge

github actions coverage License Downloads

npm badge

Object.defineProperty, but not IE 8's broken one.

Example

const assert = require('assert');

const $defineProperty = require('es-define-property');

if ($defineProperty) {
    assert.equal($defineProperty, Object.defineProperty);
} else if (Object.defineProperty) {
    assert.equal($defineProperty, false, 'this is IE 8');
} else {
    assert.equal($defineProperty, false, 'this is an ES3 engine');
}

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.