Drake предпочитает is-odd
x % 2 !== 0 JS JS is-odd Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER. Please consider following this project author, Jen Schlinkert, and consider starring the project to show you ❤️ 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('3')); //=> true console.log(isOdd(3)); //=> true downloads 2.3M/month downloads 59M
На шаблоне Drake программист отвергает обычную проверку нечётности через JavaScript и одобряет отдельный npm-пакет is-odd. Шутка высмеивает экосистему JavaScript, где даже простейшую операцию предлагают решать установкой зависимости с миллионами скачиваний.
man in orange puffer jacket / мужчина в оранжевой куртке-пуховикеbeard / бородаyellow background / жёлтый фонJavaScript logo / логотип JavaScriptnpm package page / страница npm-пакетаcode snippet / фрагмент кодаdownload statistics / статистика скачиванийgreen label / зелёная плашкаpurple line graph / фиолетовый линейный графикtext panel / текстовая панельhand gesture / жест рукой
- @profunctor_io / 6909 2021-07-23
- Template
- Drake Hotline Bling
- Type
- image
- Size
- 638×592 · 44.4 KiB
- Mood
- саркастичный
- Language
- eng
- Added