{"published":"2026-07-31 10:50:58","categories":["\u30c6\u30af\u30ce\u30ed\u30b8\u30fc"],"width":"100%","title":"TypeScript\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8\u306b\u304a\u3044\u3066\u3001\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u5185\u3067\u306eoptional chaining\u3084nullish coalescing operator\u306e\u5229\u7528\u3092\u306a\u308b\u3079\u304f\u907f\u3051\u308b","height":"190","blog_url":"https://polamjag.hatenablog.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpolamjag.hatenablog.jp%2Fentry%2F2026%2F07%2F31%2F105058\" title=\"TypeScript\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8\u306b\u304a\u3044\u3066\u3001\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u5185\u3067\u306eoptional chaining\u3084nullish coalescing operator\u306e\u5229\u7528\u3092\u306a\u308b\u3079\u304f\u907f\u3051\u308b - polamjaggy\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","description":"\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u3092\u307e\u308c\u306b\u898b\u308b\u306e\u3060\u304c: interface Foo { param: number; } const something: Foo | undefined = ...; const theOther: Foo | undefined = ...; expect(something?.param).toBe(theOther?.param); \u3053\u306e\u30c6\u30b9\u30c8\u306f\u3001actual / expected \u306e\u5024\u306e\u4e21\u65b9\u306b\u3064\u3044\u3066optional chaining\u304cundefined\u5074\u306b\u5012\u308c\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u306b\u3001expect(undefined).toBe(undefined) \u306a\u3053\u3068\u3092\u30a2\u30b5\u30fc\u30c8\u3057\u2026","version":"1.0","provider_name":"Hatena Blog","url":"https://polamjag.hatenablog.jp/entry/2026/07/31/105058","author_url":"https://blog.hatena.ne.jp/polamjag/","author_name":"polamjag","blog_title":"polamjaggy","image_url":null,"type":"rich"}