1
0
Fork 0
mirror of synced 2024-09-15 08:47:37 +12:00
budibase/packages/common/node_modules/date-fns/is_date/index.js

21 lines
456 B
JavaScript
Raw Normal View History

2020-04-08 02:12:08 +12:00
/**
* @category Common Helpers
* @summary Is the given argument an instance of Date?
*
* @description
* Is the given argument an instance of Date?
*
* @param {*} argument - the argument to check
* @returns {Boolean} the given argument is an instance of Date
*
* @example
* // Is 'mayonnaise' a Date?
* var result = isDate('mayonnaise')
* //=> false
*/
function isDate (argument) {
return argument instanceof Date
}
module.exports = isDate