registration
This commit is contained in:
8
frontend/style/node_modules/date-fns/isExists.js
generated
vendored
8
frontend/style/node_modules/date-fns/isExists.js
generated
vendored
@@ -1,5 +1,4 @@
|
||||
"use strict";
|
||||
exports.isExists = isExists; /**
|
||||
/**
|
||||
* @name isExists
|
||||
* @category Common Helpers
|
||||
* @summary Is the given date exists?
|
||||
@@ -23,7 +22,7 @@ exports.isExists = isExists; /**
|
||||
* const result = isExists(2018, 1, 31)
|
||||
* //=> false
|
||||
*/
|
||||
function isExists(year, month, day) {
|
||||
export function isExists(year, month, day) {
|
||||
const date = new Date(year, month, day);
|
||||
return (
|
||||
date.getFullYear() === year &&
|
||||
@@ -31,3 +30,6 @@ function isExists(year, month, day) {
|
||||
date.getDate() === day
|
||||
);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default isExists;
|
||||
|
||||
Reference in New Issue
Block a user