developer.mozilla.org/en-US/docs/W...
developer.mozilla.org/en-US/docs/W...
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
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
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
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
https://chriseugenerodriguez.com/blog/typescript-safe-truthiness-filter-narrow-nullish-without-dropping-0-or-empty
https://chriseugenerodriguez.com/blog/typescript-safe-truthiness-filter-narrow-nullish-without-dropping-0-or-empty
📊 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
📊 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
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
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
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
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
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
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
`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
`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
Falsy ≠ Nullish.
I wrote about TypeScript narrowing, `isNotNil`, and ESLint. 😸🔧
dev.to/nyaomaru/why...
#TypeScript #JavaScript #OpenSource
Falsy ≠ Nullish.
I wrote about TypeScript narrowing, `isNotNil`, and ESLint. 😸🔧
dev.to/nyaomaru/why...
#TypeScript #JavaScript #OpenSource
`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
`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
`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
`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
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
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
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
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
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
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
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
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
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
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