Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

isDate.js 642B

123456789101112131415161718192021222324252627
  1. var baseIsDate = require('./_baseIsDate'),
  2. baseUnary = require('./_baseUnary'),
  3. nodeUtil = require('./_nodeUtil');
  4. /* Node.js helper references. */
  5. var nodeIsDate = nodeUtil && nodeUtil.isDate;
  6. /**
  7. * Checks if `value` is classified as a `Date` object.
  8. *
  9. * @static
  10. * @memberOf _
  11. * @since 0.1.0
  12. * @category Lang
  13. * @param {*} value The value to check.
  14. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  15. * @example
  16. *
  17. * _.isDate(new Date);
  18. * // => true
  19. *
  20. * _.isDate('Mon April 23 2012');
  21. * // => false
  22. */
  23. var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
  24. module.exports = isDate;