Yoda condition
When you write if ("red" === color) { instead of if (color === "red") { because it reads as, “if red equals the color”, similar to the way the Star Wars character Yoda speaks.
- from
- Naming
- added
- 2026-10-10
- likes
- 0
similar
-
Colorify.js github.com
Simple, customizable, tiny JavaScript color extractor.
-
XO github.com
JavaScript happiness style linter ❤️.
-
Regex Colorizer github.com
-
arrow functions github.com
ESLint rules to ensure proper arrow function definitions.
-
color2k github.com
A color parsing and manipulation lib.
-
d-colorize code.dlang.org
Naming › Other: “When you write if ("red" === color) { instead of if (color === "red") { because it reads as, “if red equals the color”, similar to the way the Star Wars character Yoda speaks.”