結果 : typescript return null if undefined