mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2025-01-11 06:59:29 -07:00
14 lines
294 B
JavaScript
14 lines
294 B
JavaScript
"use strict";
|
|
|
|
/**
|
|
* Returns `true` when `value` is an instance of Date
|
|
*
|
|
* @private
|
|
* @param {Date} value The value to examine
|
|
* @returns {boolean} `true` when `value` is an instance of Date
|
|
*/
|
|
function isDate(value) {
|
|
return value instanceof Date;
|
|
}
|
|
|
|
module.exports = isDate;
|