![]() |
VOOZH | about |
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: