How to properly get values from multidimensional object
Minor Changes


Method name reduce suggests a generic API method that would take a predicate and accumulator. Instead, it's very specific in returning a custom array and mapping a string to Date. I would call it getCalendarByMinimumRecommendedTime instead.
Prefer the use of const over let for immutable data: const providerCalendars and const providerRecommended.
The unused index parameter i can be omitted: return data.reduce((acc, cur) =&gt; {.