MomentJS - Is a Moment


Advertisements

This method will return true or false if the given variable to be checked is a moment.

Syntax

moment.isMoment(obj);

Example

var ismoment = moment.isMoment(moment());

Output

Is Moment

Example

var ismoment = moment.isMoment(moment([2010, 05, 01]));

Output

isMoment Moment
momentjs_date_queries.htm
Advertisements