fixed some spellings

This commit is contained in:
Keshav Bohra
2021-10-05 12:49:23 +05:30
parent 199d2637cc
commit 1589263947
41 changed files with 80 additions and 80 deletions

View File

@@ -44,7 +44,7 @@ const DateToDay = (date) => {
if (typeof date !== 'string') {
return new TypeError('Argument is not a string.')
}
// extarct the date
// extract the date
const [day, month, year] = date.split('/').map((x) => Number(x))
// check the data are valid or not.
if (day < 0 || day > 31 || month > 12 || month < 0) {