Projekt

Obecné

Profil

Stáhnout (642 Bajtů) Statistiky
| Větev: | Revize:
1
var baseIsDate = require('./_baseIsDate'),
2
    baseUnary = require('./_baseUnary'),
3
    nodeUtil = require('./_nodeUtil');
4

    
5
/* Node.js helper references. */
6
var nodeIsDate = nodeUtil && nodeUtil.isDate;
7

    
8
/**
9
 * Checks if `value` is classified as a `Date` object.
10
 *
11
 * @static
12
 * @memberOf _
13
 * @since 0.1.0
14
 * @category Lang
15
 * @param {*} value The value to check.
16
 * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
17
 * @example
18
 *
19
 * _.isDate(new Date);
20
 * // => true
21
 *
22
 * _.isDate('Mon April 23 2012');
23
 * // => false
24
 */
25
var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
26

    
27
module.exports = isDate;
(424-424/634)