isDate source npm

_.isDate(value)

Checks if value is classified as a Date object.

Arguments

  1. value (*)

    The value to check.

Returns (boolean)

Returns true if value is correctly classified, else false.

Example

_.isDate(new Date);
// => true

_.isDate('Mon April 23 2012');
// => false