VOOZH about

URL: https://www.geeksforgeeks.org/javascript/underscore-js-_-isdate-function/

⇱ Underscore.js _.isDate() function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Underscore.js _.isDate() function

Last Updated : 14 Jul, 2020

Underscore.js is a javascript library that is capable enough to handle arrays, strings, objects, map, set very easily and efficiently. The _.isDate() function in underscore.js is used to tell if the given object is a date object or not. 

Syntax: 

_.isDate(object);

Parameters: It takes only one parameter i.e the object.

Return: This function returns a boolean value. The value is true is the object is date object else it is false.

Note: Please Link the underscore CDN before using this code directly in the browser through the code.

Example 1: 

Output:

👁 Image


Example 2: 

Output: 

👁 Image
Comment