/ student-intifada / node_modules / es-define-property /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/a year ago -  
[TXT]CHANGELOG.mda year ago822  
[   ]LICENSEa year ago1.0K 
[TXT]README.mda year ago2.0K595aea1 more query options + view options [كارل مبارك]
[TXT]index.d.tsa year ago 93  
[   ]index.jsa year ago358  
[   ]package.jsona year ago2.1Kafd0ccc remove unused [كارل مبارك]
[   ]tsconfig.jsona year ago3.1K595aea1 more query options + view options [كارل مبارك]
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.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80