Array.includes() checks the value.
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
- GPU Computing with CUDA CPP: Instagram! A Practical Guide to GPU Architecture, Parallel… — @gp_pulipaka
- 今天跑 cargo audit 或 cargo deny 的 Rust 程序员估计要集体懵逼了:累计下载 9.9 亿次、统治了半个 Rust 生态的时间库… — @mylifcc
- How can a shared software stack help bring PyTorch support to new chips? Chris Lattner… — @PyTorch
- MasterFabric Rust Platforms'ta aynı çekirdeği SwiftUI ve Jetpack Compose'a UniFFI,… — @gurkandev
- What index does an array start at? — @eur10n
- We asked an AI which TypeScript to install today. — @FreshOutofBeta
- 𝐋𝐞𝐚𝐧 𝟒.𝟑𝟔.𝟎 𝐢𝐬 𝐥𝐢𝐯𝐞! This release brings 222 changes, including 30… — @leanprover
- next part of the rust migration done (out internal scheduler) — @marsc_hb
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.