/ etherpad / src / plugin_packages / get-intrinsic / node_modules / es-define-property /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/3 months ago -  
[TXT]CHANGELOG.md40 years ago2.2K 
[   ]LICENSE40 years ago1.0K 
[TXT]README.md40 years ago2.0K 
[TXT]index.d.ts40 years ago 93  
[   ]index.js40 years ago288  
[   ]package.json40 years ago2.1K 
[   ]tsconfig.json40 years ago138  
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