function isDate(value) {
  return toString.call(value) === '[object Date]';
}
@ngdoc function
@name angular.isDate
@module ng
@kind function

@description
Determines if a value is a date.

@param {*} value Reference to check.
@returns {boolean} True if `value` is a `Date`.