testes/Biblioteca/node_modules/es-define-property
thiago.purkote 4a4e3d4bb2 Criação do projeto 2024-08-01 12:10:51 -03:00
..
.github Criação do projeto 2024-08-01 12:10:51 -03:00
test Criação do projeto 2024-08-01 12:10:51 -03:00
.eslintrc Criação do projeto 2024-08-01 12:10:51 -03:00
.nycrc Criação do projeto 2024-08-01 12:10:51 -03:00
CHANGELOG.md Criação do projeto 2024-08-01 12:10:51 -03:00
LICENSE Criação do projeto 2024-08-01 12:10:51 -03:00
README.md Criação do projeto 2024-08-01 12:10:51 -03:00
index.d.ts Criação do projeto 2024-08-01 12:10:51 -03:00
index.js Criação do projeto 2024-08-01 12:10:51 -03:00
package.json Criação do projeto 2024-08-01 12:10:51 -03:00
tsconfig.json Criação do projeto 2024-08-01 12:10:51 -03: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.