运维小程序
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
dong 488fa3b88d 更换接口日常优化 1 år sedan
..
.github 更换接口日常优化 1 år sedan
test 更换接口日常优化 1 år sedan
.eslintrc 更换接口日常优化 1 år sedan
.nycrc 更换接口日常优化 1 år sedan
CHANGELOG.md 更换接口日常优化 1 år sedan
LICENSE 更换接口日常优化 1 år sedan
README.md 更换接口日常优化 1 år sedan
index.d.ts 更换接口日常优化 1 år sedan
index.js 更换接口日常优化 1 år sedan
package.json 更换接口日常优化 1 år sedan
tsconfig.json 更换接口日常优化 1 år sedan

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.