Dev Radar
Support
LiveUpdated 2026-11-25 18:41 UTC

Array.includes() checks the value.

Array.includes() checks the value. But it doesn’t narrow the type. 🙀 With a type guard, you get both: ✅ runtime check…

This is a dev post classified by AGK Intelligence as Languages & runtimes (a tool drop), kept by the Dev Radar because it carries real work, not commentary.

Array.includes() checks the value. But it doesn’t narrow the type. 🙀 With a type guard, you get both: ✅ runtime check ✅ type narrowing That’s exactly what oneOfValues() in is-kit is for. 😸 https://github.com/necoz-oss/is-kit #TypeScript #OpenSource

Posted by nyaomaru (11.5k followers) 9 days ago · 0 likes · 7 views · view the original post on X. Kept by the Dev Radar as Languages & runtimes.

More dev work like this

Every post is read and classified by AGK Intelligence: what it is, which market it belongs to, and whether the link is a real tool. 13.4k posts from 5k X accounts over the last 21 days, 10.1k tools, 12 markets. New posts are collected several times an hour and the full ranking is recomputed every hour — last update 2026-11-25 18:41 UTC. Full method.