{"author_url":"https://blog.hatena.ne.jp/taka_say/","blog_url":"https://taka-say.hateblo.jp/","type":"rich","provider_name":"Hatena Blog","url":"https://taka-say.hateblo.jp/entry/2022/04/16/175157","width":"100%","published":"2022-04-16 17:51:57","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaka-say.hateblo.jp%2Fentry%2F2022%2F04%2F16%2F175157\" title=\"\u3010JavaScript\u3011\u6761\u4ef6\u3092\u6e80\u305f\u3059\u5834\u5408\u306e\u307f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8ffd\u52a0\u3059\u308b - \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u7528\u3044\u308b\u8a00\u8449\u306e\u9078\u629e\u3067\u6c7a\u307e\u308b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","title":"\u3010JavaScript\u3011\u6761\u4ef6\u3092\u6e80\u305f\u3059\u5834\u5408\u306e\u307f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8ffd\u52a0\u3059\u308b","image_url":null,"categories":["JavaScript"],"blog_title":"\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u7528\u3044\u308b\u8a00\u8449\u306e\u9078\u629e\u3067\u6c7a\u307e\u308b","description":"\u5fd8\u308c\u304c\u3061\u3067\u3088\u304f\u691c\u7d22\u3059\u308b\u306e\u3067\u30e1\u30e2\u3002 const a = { ...(someCondition && { b: 5 }), }; References In JavaScript, how to conditionally add a member to an object?","author_name":"taka_say","provider_url":"https://hatena.blog"}