1.0.0 • Published 3 months ago

es-define-property v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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.

es-abstractcall-bindp149-tablemachinebeemrcapscode-msi-simple_calculator123zs89cli-number-guessingkny63-atm-machinekshahmeer10_atmatm_process@uf3sindh/simple_cli_calculatorhmmmmd12-cli-number-guessinghmd12-cli-number-guessingpizza-teapucuk5000project123bas_simple_calculatorproject04-currency-converter4projekudinpro-af302-number-guessing-gamequdratic-uiquadratic-sdkpublish-with-riz-cli-number-guessing-gamer89r-simplecalculatorr628b_calculator_project1siniwosgbteamnewerasipalingerlyslip6slip7slip9slip10slip11slip19slip21slip23slip24slip25slip26slip27slip28siralexferguson023siralexferguson03slebewrimsha-calculator_project1rofiqridwangonzales84ronaldocr7vibessenggoldongsergiobesquest34sergekayamba92serenitymeangle21sh-calculatorshadow21atmshahji_word_countersheikh-simple-calculatorsimple-calculator-by-abdulsalamsania-sajid-currency-convertersanober-calculatorsal9-cli-number-geasingsuperboysumaira-naveed-cli-gueeesing-number-gamesunarirumaan-cli-number-guessingrusferreact-native-pool-corereact-native-tone-frameworkreact-native-dimensions-layoutreact-native-custom-image-carouselreact-native-fedlight-dsmreact-native-module-argereact-native-multiplypolospopoqpatrisiomorales75prastianhdpr03-cli-numbers-guessing-gamereact-wizard-viewerreggaeman22react-credorashida-todo-listras_atm-projectrayanbrosky-appquickcapture_react_nativeproject-04-currency-convertorproject--002---number-guessing-gameproject-005-currenty-convertersehri_calculatorsendaljepitsrnodetprojectss35-cli-based-currency-converterss35-currency-converterss78_number_guessing_gamess2-my-calculatorshineinajashineinbosshisuitearxsyed-muhammad-mehdi-raza-zaidi-cli-atm-machinesyed123-calculatortetbekthurotea
1.0.0

3 months ago