What does this expression do? Why is this useful?

I looked through the library code and found the following line:

var date = (0, _utilsParseInputJs2['default'])(props.date, format); 

I do not understand what does (0, _utilsParseInputJs2['default']) . It seems to be supposed to return a function, but I had never seen anything like it before. Why (0, ,?

https://github.com/Adphorus/react-date-range/blob/master/lib/Calendar.js#line-73

+5
source share

Source: https://habr.com/ru/post/1247357/


All Articles