util.isDate(object)
Stability: 0 - Deprecated
Returns true
if the given "object" is a Date
. Otherwise, returns false
.
const util = require('util'); util.isDate(new Date()) // true util.isDate(Date()) // false (without 'new' returns a String) util.isDate({}) // false
Please login to continue.