Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
unknown fe79185e87 ali aslani il y a 1 an
..
.github ali aslani il y a 1 an
test ali aslani il y a 1 an
.eslintrc ali aslani il y a 1 an
.nycrc ali aslani il y a 1 an
CHANGELOG.md ali aslani il y a 1 an
LICENSE ali aslani il y a 1 an
README.md ali aslani il y a 1 an
index.d.ts ali aslani il y a 1 an
index.js ali aslani il y a 1 an
package.json ali aslani il y a 1 an
tsconfig.json ali aslani il y a 1 an

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.