JavaScript Chooses is-odd
JS x % 2 !== 0 is-odd Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAX_SAFE_INTEGER. Please consider following this project’s author, JeffSchiller, and consider starring the project to show your ♥ and support. Install Install with npm: $ npm install --save is-odd Usage Works with strings or numbers. const isOdd = require('is-odd'); console.log(isOdd('1')); //=> true console.log(isOdd('1.1')); //=> true downloads 2.3M/month downloads 59M
Мем показывает шаблон Drake: Дрейк отвергает простую проверку нечётности в JavaScript через «x % 2 !== 0», но одобряет использование отдельного npm-пакета is-odd для той же задачи. Шутка высмеивает избыточную зависимость и абсурдный масштаб популярности маленького пакета, который скачивают миллионы раз. EN: The meme uses the Drake format: Drake rejects the simple JavaScript odd-number check “x % 2 !== 0” but approves using a separate npm package called is-odd for the same task. The joke mocks unnecessary dependencies and the absurd popularity of a tiny package downloaded millions of times.
man in an orange puffer jacket / мужчина в оранжевой курткеDrake / Дрейкyellow JS label / жёлтая табличка JSJavaScript code / код JavaScriptnpm package page / страница npm-пакетаdownload statistics / статистика загрузокgreen download badge / зелёный значок загрузокpurple line chart / фиолетовый линейный графикwhite webpage background / белый фон веб-страницыred clothing / красная одежда
- @right_wing_dev_squads / 912 2021-01-06
- @gentoomemes / 1480 2022-12-04
- Template
- Drake Hotline Bling
- Type
- image
- Size
- 800×742 · 72.7 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added