(config)
| 1770 | |
| 1771 | // Moment prototype object |
| 1772 | function Moment(config) { |
| 1773 | copyConfig(this, config); |
| 1774 | this._d = new Date(config._d != null ? config._d.getTime() : NaN); |
| 1775 | // Prevent infinite loop in case updateOffset creates new moment |
| 1776 | // objects. |
| 1777 | if (updateInProgress === false) { |
| 1778 | updateInProgress = true; |
| 1779 | utils_hooks__hooks.updateOffset(this); |
| 1780 | updateInProgress = false; |
| 1781 | } |
| 1782 | } |
| 1783 | |
| 1784 | function isMoment (obj) { |
| 1785 | return obj instanceof Moment || (obj != null && obj._isAMomentObject != null); |
nothing calls this directly
no test coverage detected