I am seeing a piece of code:
const format = _invoke(Intl, 'DateTimeFormat')
And for me it looks like it can be replaced by a simpler variant:
const format = Intl.DateTimeFormat
However, I am afraid it can work in a different way when changed to latter because it’s not just a function but a method of an object?
So, why the author of the code could’ve used it that way?