registration

This commit is contained in:
User
2025-02-02 16:08:03 +03:00
parent 7f6495eb4d
commit 78afbaed71
6334 changed files with 196774 additions and 165754 deletions

View File

@@ -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;