0

I found this syntax when I read someone's source code of vue ui component.

I guess this might be new es6 syntax but I cannot find the definition from any online es6 resources.

Could anybody enlighten me on that?

Here are some code snippets

var _moment = require('moment');
var _moment2 = _interopRequireDefault(_moment);
this.checked.currentMoment = (0, _moment2.default)();

The syntax I cannot understand is (0, _moment2.default).

Chuck
  • 1,508
  • 4
  • 15
  • 19

0 Answers0