tui-code-snippet
Version:
TOAST UI Utility: CodeSnippet
20 lines (16 loc) • 493 B
JavaScript
/**
* @fileoverview Check whether the given variable is an instance of Date or not.
* @author NHN FE Development Lab <dl_javascript@nhn.com>
*/
;
/**
* Check whether the given variable is an instance of Date or not.
* If the given variables is an instance of Date, return true.
* @param {*} obj - Target for checking
* @returns {boolean} Is an instance of Date?
* @memberof module:type
*/
function isDate(obj) {
return obj instanceof Date;
}
module.exports = isDate;