This method allows to access the data, that is the input provided once the moment is created. It returns the object with the inputs.
moment().creationData();
Observe the following example to understand the working of creationData in MomentJS −
var m = moment("2013-01-02", "YYYY-MM-DD").creationData(); m.input; m.format;