2022-04-01から1ヶ月間の記事一覧
忘れがちでよく検索するのでメモ。 const a = { ...(someCondition && { b: 5 }), }; References In JavaScript, how to conditionally add a member to an object?
忘れがちでよく検索するのでメモ。 const a = { ...(someCondition && { b: 5 }), }; References In JavaScript, how to conditionally add a member to an object?