Optional Call
TypeScript
の機能で,
関数
が
undefined
でなければ実行し,
undefined
であれば何もしないもの.
code:.ts
// do が undefined かどうかを見ている
something.do?.(args)
オプショナルコール