_.isDate(value)

sourcenpm package

Checks if value is classified as a Date object.

Since

0.1.0

Arguments

  • value (*): The value to check.

Returns

(boolean): Returns true if value is a date object, else false.

Example

  1. _.isDate(new Date);
    // => true
    _.isDate('Mon April 23 2012');
    // => false