mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
Comply with ESM syntax.
This commit is contained in:
@ -38,4 +38,4 @@ const DateDayDifference = (date1, date2) => {
|
||||
|
||||
// Example : DateDayDifference('17/08/2002', '10/10/2020') => 6630
|
||||
|
||||
module.exports = DateDayDifference
|
||||
export { DateDayDifference }
|
||||
|
@ -61,4 +61,4 @@ const DateToDay = (date) => {
|
||||
|
||||
// Example : DateToDay("18/12/2020") => Friday
|
||||
|
||||
module.exports = DateToDay
|
||||
export { DateToDay }
|
||||
|
@ -32,4 +32,4 @@ const LowerCaseConversion = (inputString) => {
|
||||
return newString.join('')
|
||||
}
|
||||
|
||||
module.exports = LowerCaseConversion
|
||||
export { LowerCaseConversion }
|
||||
|
@ -32,4 +32,4 @@ const RailwayTimeConversion = (timeString) => {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = RailwayTimeConversion
|
||||
export { RailwayTimeConversion }
|
||||
|
Reference in New Issue
Block a user