Is object Date type - Node.js Data Type

Node.js examples for Data Type:Type Check

Description

Is object Date type

Demo Code

function isDate(d) {
  return isObject(d) && objectToString(d) === '[object Date]';
}
function isObject(arg) {
  return typeof arg === 'object' && arg !== null;
}

Related Tutorials