Spaces:
Running
Running
|
Download node_modules/es-define-property/README.md from fffiloni/live-vision: direct link, hf CLI and curl.
- Browser
- Download file 2.06 kB
-
https://huggingface.co/spaces/fffiloni/live-vision/resolve/main/node_modules/es-define-property/README.md
- Command line
-
hf download hf://spaces/fffiloni/live-vision/node_modules/es-define-property/README.md
-
curl -L -o README.md https://huggingface.co/spaces/fffiloni/live-vision/resolve/main/node_modules/es-define-property/README.md
2.06 kB
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.
