registration
This commit is contained in:
8
frontend/style/node_modules/date-fns/isDate.js
generated
vendored
8
frontend/style/node_modules/date-fns/isDate.js
generated
vendored
@@ -1,5 +1,4 @@
|
||||
"use strict";
|
||||
exports.isDate = isDate; /**
|
||||
/**
|
||||
* @name isDate
|
||||
* @category Common Helpers
|
||||
* @summary Is the given value a date?
|
||||
@@ -31,10 +30,13 @@ exports.isDate = isDate; /**
|
||||
* const result = isDate({})
|
||||
* //=> false
|
||||
*/
|
||||
function isDate(value) {
|
||||
export function isDate(value) {
|
||||
return (
|
||||
value instanceof Date ||
|
||||
(typeof value === "object" &&
|
||||
Object.prototype.toString.call(value) === "[object Date]")
|
||||
);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default isDate;
|
||||
|
||||
Reference in New Issue
Block a user