#nullish
JavaScript defaults: 0 || 10 gives 10, but 0 ?? 10 keeps 0. Use ?? when only null or undefined should trigger the fallback. It also preserves false and an empty string. Useful when zero is a valid quantity, not missing data.
developer.mozilla.org/en-US/docs/W...
Nullish coalescing operator (??) - JavaScript | MDN
The nullish coalescing (??) operator is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side opera...
developer.mozilla.org
November 9, 2026 at 10:07 AM
Exactly 😸 Modern TypeScript makes the explicit nullish check both safer at runtime and better typed than filter(Boolean).
October 18, 2026 at 6:37 AM
filter(Boolean) and “remove nullish values” are not the same thing.
Boolean also removes 0, false, and ''.
If you only mean “remove null and undefined”, say exactly that. 😸
https://is-kit.dev/guides/filter-null-and-undefined
#TypeScript
Filter null and undefined from Arrays in TypeScript | is-kit
Safely filter null and undefined from TypeScript arrays while preserving type narrowing and valid falsy values.
is-kit.dev
October 17, 2026 at 4:27 PM
filter(Boolean) and “remove nullish values” are not the same thing.
Boolean also removes 0, false, and ''.
Those can be perfectly valid values.
If you only mean null and undefined, say exactly that. 😸

https://is-kit.dev/guides/filter-null-and-undefined

#TypeScript #WebDev #EuropeanDevs
Filter null and undefined from Arrays in TypeScript | is-kit
Safely filter null and undefined from TypeScript arrays while preserving type narrowing and valid falsy values.
is-kit.dev
October 17, 2026 at 4:27 PM
#xqc #kicktimeout
nullish ⏳ 3m timeout by moderator (after 0s)
"emojiAngel"
kick.com/xqc
October 16, 2026 at 4:22 AM
Replace filter(Boolean) with value !== null && value !== undefined so 0 and '' survive; test runtime behavior and check narrowing with tsc. #TypeScript

https://chriseugenerodriguez.com/blog/typescript-safe-truthiness-filter-narrow-nullish-without-dropping-0-or-empty
October 4, 2026 at 9:20 AM
using the nullish coalescing operator to stop a nullcissist from being vague and having undefined behaviour
October 2, 2026 at 1:20 PM
🚨 EUVD-2026-82898
📊 10.0/10
🏢 patriksimek

📝 vm2 through 3.12.0 (fixed in 3.12.1) does not correctly handle a nullish `this` receiver in the apply trap of its bridge (lib/bridge.js): when sandbo...

🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-82898

#cybersecurity #infosec #cve #euvd
September 22, 2026 at 4:08 PM
🚨 CVE-2026-93603 — CVSS 10 CRITICAL

vm2 through 3.12.0 (fixed in 3.12.1) does not correctly handle a nullish `this` receiver in the apply trap ...

🔎 https://stemshop.top/cve/CVE-2026-93603

#CVE #CyberSecurity #InfoSec
September 18, 2026 at 4:07 PM
🔴 CVE-2026-93603 - Critical (10)

vm2 through 3.12.0 (fixed in 3.12.1) does not correctly handle a nullish `this` receiver in the a...

https://www.thehackerwire.com/vulnerability/CVE-2026-93603/

#infosec #cybersecurity #CVE #vulnerability #security #patchstack
September 18, 2026 at 3:06 PM
There’s a TypeScript side to `filter(Boolean)` too. 👀

It removes falsy values at runtime, but `Boolean` isn’t a type guard.

So TypeScript doesn’t generally know that `null` and `undefined` are gone.

More in my latest article 👇

dev.to/nyaomaru/why...

#TypeScript #JavaScript #OpenSource
Why filter(Boolean) Is Not a Nullish Filter in TypeScript 🔧
Hoi hoi! 👋 I'm @nyaomaru, a frontend engineer building small TypeScript OSS with shoyu ramen....
dev.to
September 17, 2026 at 3:24 PM
New article! 😸

`filter(Boolean)` is convenient, but it’s not a nullish filter.

If your data contains `0`, `false`, or `""`, they disappear too.

Falsy ≠ Nullish.

dev.to/nyaomaru/why...

#TypeScript #JavaScript #OpenSource
Why filter(Boolean) Is Not a Nullish Filter in TypeScript 🔧
Hoi hoi! 👋 I'm @nyaomaru, a frontend engineer building small TypeScript OSS with shoyu ramen....
dev.to
September 16, 2026 at 2:38 PM
`filter(Boolean)` looks nice — until `0`, `false`, or `""` quietly disappears. 🙀

Falsy ≠ Nullish.

I wrote about TypeScript narrowing, `isNotNil`, and ESLint. 😸🔧

dev.to/nyaomaru/why...

#TypeScript #JavaScript #OpenSource
Why filter(Boolean) Is Not a Nullish Filter in TypeScript 🔧
Hoi hoi! 👋 I'm @nyaomaru, a frontend engineer building small TypeScript OSS with shoyu ramen....
dev.to
September 16, 2026 at 2:37 PM
Tiny JavaScript edge case 👀

`value != null` is often used as a short nullish check.

But `document.all` is a historical browser exception: it behaves as nullish under loose equality.

JavaScript is fun. 😹

#JavaScript #WebDev
September 14, 2026 at 3:12 PM
Tiny JavaScript edge case 👀

`value != null` is often used as a short nullish check.

But `document.all` is a historical browser exception: it behaves as nullish under loose equality.

JavaScript is fun. 😹

#JavaScript #WebDev
September 14, 2026 at 3:10 PM
I don’t think every small check needs a library. 😸

For a one-off nullish filter, an inline type predicate is perfectly fine.

A named guard becomes more useful when the same meaning starts showing up repeatedly across the codebase.

github.com/nyaomaru/is-...

#TypeScript #OpenSource
GitHub - nyaomaru/is-kit: Build small guards. Compose them. Lightweight, zero-dependency TypeScript type guards for runtime validation and natural narrowing. Runtime-safe 🛡️, composable 🧩, and ergonom...
Build small guards. Compose them. Lightweight, zero-dependency TypeScript type guards for runtime validation and natural narrowing. Runtime-safe 🛡️, composable 🧩, and ergonomic ✨. - nyaomaru/is-kit
github.com
September 13, 2026 at 2:08 PM
I don’t think every small check needs a library. 😸

For a one-off nullish filter, an inline type predicate is perfectly fine.

A named guard becomes more useful when the same meaning starts showing up repeatedly across the codebase.

github.com/nyaomaru/is-...

#TypeScript #OpenSource
GitHub - nyaomaru/is-kit: Build small guards. Compose them. Lightweight, zero-dependency TypeScript type guards for runtime validation and natural narrowing. Runtime-safe 🛡️, composable 🧩, and ergonom...
Build small guards. Compose them. Lightweight, zero-dependency TypeScript type guards for runtime validation and natural narrowing. Runtime-safe 🛡️, composable 🧩, and ergonomic ✨. - nyaomaru/is-kit
github.com
September 13, 2026 at 2:09 PM
It’s weird trying to bridge GObject stuff to OCaml in a type safe way. Some interfaces clearly describe non-nullish behaviour, but they’re specified using types that can be nullish underneath, so my code generator ends up throwing a runtime exception instead.
September 10, 2026 at 10:24 PM
document.all is such a good edge case to catch, it's spec'd as undefined via typeof but still truthy in loose comparisons, breaks a lot of naive nullish checks. pulling exceptions out of the isTypedArray hot path is the right call too, throw/catch is brutal for V8 deopt when it's hit often.
September 8, 2026 at 7:50 PM
is-kit v1.14.1 is out 😸

This release fixes two non-obvious runtime paths

• preserves strict nullish semantics in browsers, including the document.all edge case
• removes exception-driven checks from the successful isTypedArray path
github.com/nyaomaru/is-...

#TypeScript #OpenSource
Release v1.14.1 · nyaomaru/is-kit
What's Changed docs(changelog): 1.14.0 by @github-actions[bot] in #288 docs: validate hey-api types by @nyaomaru in #289 docs: clarify TypeScript 7 Compiler API compatibility by @nyaomaru in #290 ...
github.com
September 8, 2026 at 2:34 PM
is-kit v1.14.1 is out 😸

This release fixes two non-obvious runtime paths

• preserves strict nullish semantics in browsers, including the document.all edge case
• removes exception-driven checks from the successful isTypedArray path
github.com/nyaomaru/is-...

#TypeScript #OpenSource
Release v1.14.1 · nyaomaru/is-kit
What's Changed docs(changelog): 1.14.0 by @github-actions[bot] in #288 docs: validate hey-api types by @nyaomaru in #289 docs: clarify TypeScript 7 Compiler API compatibility by @nyaomaru in #290 ...
github.com
September 8, 2026 at 2:35 PM
I don’t get to use `??=` often enough! It’s edge-casey, but just feels elegant.
Nullish coalescing assignment (??=) - JavaScript | MDN
The nullish coalescing assignment (??=) operator, also known as the logical nullish assignment operator, only evaluates the right operand and assigns to the left if the left operand is nullish (null o...
developer.mozilla.org
November 18, 2024 at 5:43 AM
In JS we don't have null, true, or false.

We have Nullish, Truthy, and Falsy.

This is a sign to run immediately and never look back.
JS is not your friend. Do not be decieved
May 16, 2026 at 6:30 PM
I made this bleepling a couple of years ago and, unusually, I still quite like it. soundcloud.com/nullish/roya... #TidalCycles #livecoding
Royal Cog
Return to live coding with the amazing TidalCycles pattern language.
soundcloud.com
May 27, 2025 at 9:33 PM