{"type":"rich","version":"1.0","url":"https://www.pandanoir.info/entry/2024/08/07/095116","provider_url":"https://hatena.blog","blog_title":"Panda Noir","published":"2024-08-07 09:51:16","description":"const obj1 = { foo: 42, ...({ foo: undefined }), }; // {foo: undefined} const obj2 = { foo: 42, ...({}), }; // {foo: 42} \u2191\u3053\u3093\u306a\u611f\u3058\u3067\u3001undefined\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u3068\u30d7\u30ed\u30d1\u30c6\u30a3\u81ea\u4f53\u304c\u306a\u3044\u3068\u304d\u3067\u306f\u52d5\u4f5c\u304c\u7570\u306a\u308a\u307e\u3059\u3002 (\u5b9f\u306f\u4e0a\u306e\u30b3\u30fc\u30c9\u306f\u305d\u306e\u307e\u307e\u3060\u3068foo\u304c\u4e8c\u91cd\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3068TS\u306b\u6012\u3089\u308c\u308b\u306e\u3067\u3001\u5b9f\u969b\u306b\u554f\u984c\u306b\u306a\u308b\u30b1\u30fc\u30b9\u306f\u5c11\u306a\u3044\u3067\u3059) \u554f\u984c\u306b\u306a\u308b\u30b1\u30fc\u30b9 const props: {style: CSSProperties} = { style: { background\u2026","provider_name":"Hatena Blog","blog_url":"https://www.pandanoir.info/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pandanoir.info%2Fentry%2F2024%2F08%2F07%2F095116\" title=\"spread\u6f14\u7b97\u5b50\u3092\u4f7f\u3046\u3068\u304d\u306b {} \u3068 {foo:undefined} \u306f\u6319\u52d5\u304c\u7570\u306a\u308b - Panda Noir\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_name":"panda_noir","width":"100%","categories":["TypeScript","JavaScript"],"title":"spread\u6f14\u7b97\u5b50\u3092\u4f7f\u3046\u3068\u304d\u306b {} \u3068 {foo:undefined} \u306f\u6319\u52d5\u304c\u7570\u306a\u308b","author_url":"https://blog.hatena.ne.jp/panda_noir/","image_url":null}