Returns true
if the given object
is a Date
. Otherwise, returns false
.
const util = require('util');
util.isDate(new Date());
// Returns: true
util.isDate(Date());
// false (without 'new' returns a String)
util.isDate({});
// Returns: false
Since v4.0.0 - Use types.isDate instead.
Generated using TypeDoc
Returns
true
if the givenobject
is aDate
. Otherwise, returnsfalse
.Deprecated
Since v4.0.0 - Use types.isDate instead.