mmpSearch/assets/js/creations/server/node_modules/es-define-property
JotaChina 07562989cf
Deploy / Deploy (push) Successful in 1m16s Details
sync mode on
2025-10-26 16:43:01 -03:00
..
.github sync mode on 2025-10-26 16:43:01 -03:00
test sync mode on 2025-10-26 16:43:01 -03:00
.eslintrc sync mode on 2025-10-26 16:43:01 -03:00
.nycrc sync mode on 2025-10-26 16:43:01 -03:00
CHANGELOG.md sync mode on 2025-10-26 16:43:01 -03:00
LICENSE sync mode on 2025-10-26 16:43:01 -03:00
README.md sync mode on 2025-10-26 16:43:01 -03:00
index.d.ts sync mode on 2025-10-26 16:43:01 -03:00
index.js sync mode on 2025-10-26 16:43:01 -03:00
package.json sync mode on 2025-10-26 16:43:01 -03:00
tsconfig.json sync mode on 2025-10-26 16:43:01 -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.