Buckets:
186 GB
47,027 files
Updated 3 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .github | 1 items | ||
| test | 1 items | ||
| .eslintrc | 144 Bytes xet | 9a0ef0dd | |
| .nycrc | 139 Bytes xet | 4fec1c2b | |
| CHANGELOG.md | 2.3 kB xet | c4089af9 | |
| LICENSE | 1.07 kB xet | c0d5f000 | |
| README.md | 2.06 kB xet | ef6aef80 | |
| index.d.ts | 93 Bytes xet | ddf282de | |
| index.js | 288 Bytes xet | 4bac1463 | |
| package.json | 2.13 kB xet | 0addff7c | |
| tsconfig.json | 138 Bytes xet | 32dc862d |
es-define-property
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.
- Total size
- 186 GB
- Files
- 47,027
- Last updated
- May 1
- Pre-warmed CDN
- US EU US EU
