{"height":"190","published":"2026-02-25 21:49:40","image_url":null,"version":"1.0","provider_name":"Hatena Blog","categories":[],"url":"https://haaara.hatenablog.com/entry/2026/02/25/214940","author_url":"https://blog.hatena.ne.jp/hara-peco/","provider_url":"https://hatena.blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhaaara.hatenablog.com%2Fentry%2F2026%2F02%2F25%2F214940\" title=\"TypeScript\u306e\u578b\u5b9a\u7fa9\u3067\u500b\u4eba\u7684\u5fd8\u308c\u304c\u3061\u306a\u3053\u3068 - \u3072\u3068\u3084\u3059\u307f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6982\u8981 \u4ee5\u4e0b\u306e\u8b66\u544a\u306b\u3088\u304f\u51fa\u4f1a\u3046\u3002 Parameter 'val' implicitly has an 'any' type, but a better type may be inferred from usage. [7044] \u6697\u9ed9any\u3060\u3051\u3069\u3001\u3082\u3063\u3068\u826f\u3044\u578b\u3042\u308a\u305d\u3046\u301c\u3063\u3066\u8a00\u3063\u3066\u308b\u3002 \u30df\u30b9 TS\u306b\u4e0d\u6163\u308c\u306a\u3082\u306e\u3067\u5f53\u3066\u305a\u3063\u307d\u3046\u306b\u578b\u3092\u660e\u793a\u3059\u308b\u304c\u3001 \u4e00\u5411\u306b\u76f4\u3089\u306a\u3044\u3002 const copy = input.split('').filter(val => !isNaN(Number(val))).join(''); \u2193 const copy = input.split('').filter(val: st\u2026","blog_title":"\u3072\u3068\u3084\u3059\u307f","blog_url":"https://haaara.hatenablog.com/","type":"rich","author_name":"hara-peco","title":"TypeScript\u306e\u578b\u5b9a\u7fa9\u3067\u500b\u4eba\u7684\u5fd8\u308c\u304c\u3061\u306a\u3053\u3068"}