Permalink
Cannot retrieve contributors at this time
27 lines (24 sloc)
642 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/lodash/isDate.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var baseIsDate = require('./_baseIsDate'), | |
baseUnary = require('./_baseUnary'), | |
nodeUtil = require('./_nodeUtil'); | |
/* Node.js helper references. */ | |
var nodeIsDate = nodeUtil && nodeUtil.isDate; | |
/** | |
* Checks if `value` is classified as a `Date` object. | |
* | |
* @static | |
* @memberOf _ | |
* @since 0.1.0 | |
* @category Lang | |
* @param {*} value The value to check. | |
* @returns {boolean} Returns `true` if `value` is a date object, else `false`. | |
* @example | |
* | |
* _.isDate(new Date); | |
* // => true | |
* | |
* _.isDate('Mon April 23 2012'); | |
* // => false | |
*/ | |
var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; | |
module.exports = isDate; |