export function reachGoal(                                                                                                                              │                                                                               
                                                                               │    1 │ platform: PlatformType,                                                                                                                               │                                                                               
                                                                               │    2 │ goal: string,                                                                                                                                         │                                                                               
                                                                               │    3 │ value: string | { [key: string]: unknown }                                                                                                            │                                                                               
                                                                               │    4 ): void {                                                                                                                                               │                                                                               
                                                                               │    5 │ if (platform.analytics.yandex_metrika_id) {                                                                                                           │                                                                               
                                                                               │    6 │ │ window.ym(platform.analytics.yandex_metrika_id, "reachGoal", goal, value);                                                                          │                                                                               
                                                                               │    7 │ }                                                                                                                                                     │                                                                               
                                                                               │    8 │ if (platform.analytics.yandex_metrika_id_2) {                                                                                                         │                                                                               
                                                                               │    9 │ │ window.ym(platform.analytics.yandex_metrika_id_2, "reachGoal", goal, value);                                                                        │                                                                               
                                                                               │   10 │ }                                                                                                                                                     │                                                                               
                                                                               │   11 │ if (platform.analytics.yandex_metrika_id_3) {                                                                                                         │                                                                               
                                                                               │   12 │ │ window.ym(platform.analytics.yandex_metrika_id_3, "reachGoal", goal, value);                                                                        │                                                                               
                                                                               │   13 │ }                                                                                                                                                     │                                                                               
                                                                               │   14 }                

could you rewrite this? I'm in need for calls like window.ym(platform.analytics.yandex_metrika_id, "reachGoal", goal), without value. is it possible? or better to write new function?