Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 265 Bytes
title version signature
Is a Date
2.9.0
moment.isDate(obj);

To check if a variable is a native js Date object, use moment.isDate().

moment.isDate(); // false
moment.isDate(new Date()); // true
moment.isDate(moment()); // false