Skip to content

Commit c5fc622

Browse files
Run docs through grammar checker
1 parent d55e1f4 commit c5fc622

35 files changed

+99
-99
lines changed

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ clamp(min, max)(date);
15871587

15881588
##### Questions
15891589

1590-
- How to clamp a date to a desired date range?
1590+
- How to clamp a date to the desired date range?
15911591
- How to enforce a date to be in a given date range?
15921592

15931593
#### clone
@@ -1666,11 +1666,11 @@ dateInRange(new Date("2018-06-10T12:00:00.000Z"), new Date("2018-06-20T12:00:00.
16661666

16671667
##### Questions
16681668

1669-
- How to check if a date is within given date range?
1669+
- How to check if a date is within a given date range?
16701670

16711671
#### dayRange
16721672

1673-
Returns a local day range at a particular Date
1673+
Returns a local day range at a particular Date.
16741674

16751675
##### Type signature
16761676

@@ -1697,7 +1697,7 @@ dayRange(date);
16971697

16981698
#### daysInMonths
16991699

1700-
Returns an array of days in particular months. Number of days in February varies if it is a leap year or not
1700+
Returns an array of days in a particular months. Number of days in February varies if it is a leap year or not.
17011701

17021702
##### Type signature
17031703

@@ -1738,12 +1738,12 @@ daysInMonths(true);
17381738

17391739
##### Questions
17401740

1741-
- How to find out how many days are in particular month?
1741+
- How to find out how many days are in a particular month?
17421742
- How to find out how many days there are in a leap year?
17431743

17441744
#### daysInYear
17451745

1746-
Calculates number of days in a particular year. Varies by the leap year.
1746+
Calculates the number of days in a particular year. Varies by the leap year.
17471747

17481748
##### Type signature
17491749

@@ -1915,7 +1915,7 @@ formatDuration(26136000);
19151915

19161916
##### Questions
19171917

1918-
- How to render formatted duration?
1918+
- How to render a formatted duration?
19191919

19201920
#### formatTime
19211921

@@ -1950,7 +1950,7 @@ formatTime(new Date("2019-02-24T01:12:34"), true);
19501950

19511951
#### fromDays
19521952

1953-
Converts given day count to milliseconds.
1953+
Converts the given day count to milliseconds.
19541954

19551955
##### Type signature
19561956

@@ -1971,11 +1971,11 @@ fromDays(1);
19711971

19721972
##### Questions
19731973

1974-
- How to find how many milliseconds are in given number of days?
1974+
- How to find how many milliseconds are in a given number of days?
19751975

19761976
#### fromHours
19771977

1978-
Converts given hour count to milliseconds.
1978+
Converts the given hour count to milliseconds.
19791979

19801980
##### Type signature
19811981

@@ -1996,11 +1996,11 @@ fromHours(1);
19961996

19971997
##### Questions
19981998

1999-
- How to find how many milliseconds are in given number of hours?
1999+
- How to find how many milliseconds are in a given number of hours?
20002000

20012001
#### fromMinutes
20022002

2003-
Converts given minute count to milliseconds.
2003+
Converts the given minute count to milliseconds.
20042004

20052005
##### Type signature
20062006

@@ -2021,11 +2021,11 @@ fromMinutes(1);
20212021

20222022
##### Questions
20232023

2024-
- How to find how many milliseconds are in given number of minutes?
2024+
- How to find how many milliseconds are in a given number of minutes?
20252025

20262026
#### fromSeconds
20272027

2028-
Converts given second count to milliseconds.
2028+
Converts the given second count to milliseconds.
20292029

20302030
##### Type signature
20312031

@@ -2046,11 +2046,11 @@ fromSeconds(1);
20462046

20472047
##### Questions
20482048

2049-
- How to find how many milliseconds are in given number of seconds?
2049+
- How to find how many milliseconds are in a given number of seconds?
20502050

20512051
#### joinDateTime
20522052

2053-
Joins a date time pair into a date time string.
2053+
Joins a date-time pair into a date-time string.
20542054

20552055
##### Type signature
20562056

@@ -2071,7 +2071,7 @@ joinDateTime("2019-01-15", "13:54:33.232Z");
20712071

20722072
##### Questions
20732073

2074-
- How to join date and time to get ISO compliant date time string?
2074+
- How to join date and time to get ISO-compliant date-time string?
20752075

20762076
#### leapYear
20772077

@@ -2130,7 +2130,7 @@ parseHourMinutePair("12:34");
21302130

21312131
#### splitDateTime
21322132

2133-
Splits a date time string into a date time pair.
2133+
Splits a date-time string into a date-time pair.
21342134

21352135
##### Type signature
21362136

@@ -2151,7 +2151,7 @@ splitDateTime("2019-01-15T13:54:33.232Z");
21512151

21522152
##### Questions
21532153

2154-
- How to split ISO compliant date time string into a date and time pair?
2154+
- How to split ISO-compliant date-time string into a date and time pair?
21552155

21562156
#### startOfDay
21572157

@@ -2176,7 +2176,7 @@ endOfDay(new Date("2019-01-01T13:54:33.232Z"));
21762176

21772177
##### Questions
21782178

2179-
- How to find a date of a start of a given day?
2179+
- How to find a date of the start of a given day?
21802180

21812181
#### subtractDays
21822182

@@ -2230,7 +2230,7 @@ toDate(new Date("2019-01-15T12:00:00.000Z"));
22302230

22312231
#### toDates
22322232

2233-
Converts given array of values into Dates using the Date constructor.
2233+
Converts the given array of values into Dates using the Date constructor.
22342234

22352235
##### Type signature
22362236

@@ -2251,7 +2251,7 @@ toDates(["2019-01-15T13:54:33.232Z", new Date("2019-01-15T13:54:33.232Z").valueO
22512251

22522252
##### Questions
22532253

2254-
- How to convert array of string and timestamps into an array of Date objects?
2254+
- How to convert an array of string and timestamps into an array of Date objects?
22552255

22562256
#### toDays
22572257

@@ -2305,7 +2305,7 @@ toHours(3600000);
23052305

23062306
#### toISO
23072307

2308-
Returns an ISO compliant date time string.
2308+
Returns an ISO-compliant date-time string.
23092309

23102310
##### Type signature
23112311

@@ -2326,7 +2326,7 @@ toISO(new Date("2019-04-24T13:54:33.232Z"));
23262326

23272327
##### Questions
23282328

2329-
- How to convert Date object to ISO compliant date string?
2329+
- How to convert Date object to ISO-compliant date string?
23302330

23312331
#### toMinutes
23322332

date/README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ clamp(min, max)(date);
2525

2626
## Questions
2727

28-
- How to clamp a date to a desired date range?
28+
- How to clamp a date to the desired date range?
2929
- How to enforce a date to be in a given date range?
3030

3131
# clone
@@ -104,11 +104,11 @@ dateInRange(new Date("2018-06-10T12:00:00.000Z"), new Date("2018-06-20T12:00:00.
104104

105105
## Questions
106106

107-
- How to check if a date is within given date range?
107+
- How to check if a date is within a given date range?
108108

109109
# dayRange
110110

111-
Returns a local day range at a particular Date
111+
Returns a local day range at a particular Date.
112112

113113
## Type signature
114114

@@ -135,7 +135,7 @@ dayRange(date);
135135

136136
# daysInMonths
137137

138-
Returns an array of days in particular months. Number of days in February varies if it is a leap year or not
138+
Returns an array of days in a particular months. Number of days in February varies if it is a leap year or not.
139139

140140
## Type signature
141141

@@ -176,12 +176,12 @@ daysInMonths(true);
176176

177177
## Questions
178178

179-
- How to find out how many days are in particular month?
179+
- How to find out how many days are in a particular month?
180180
- How to find out how many days there are in a leap year?
181181

182182
# daysInYear
183183

184-
Calculates number of days in a particular year. Varies by the leap year.
184+
Calculates the number of days in a particular year. Varies by the leap year.
185185

186186
## Type signature
187187

@@ -353,7 +353,7 @@ formatDuration(26136000);
353353

354354
## Questions
355355

356-
- How to render formatted duration?
356+
- How to render a formatted duration?
357357

358358
# formatTime
359359

@@ -388,7 +388,7 @@ formatTime(new Date("2019-02-24T01:12:34"), true);
388388

389389
# fromDays
390390

391-
Converts given day count to milliseconds.
391+
Converts the given day count to milliseconds.
392392

393393
## Type signature
394394

@@ -409,11 +409,11 @@ fromDays(1);
409409

410410
## Questions
411411

412-
- How to find how many milliseconds are in given number of days?
412+
- How to find how many milliseconds are in a given number of days?
413413

414414
# fromHours
415415

416-
Converts given hour count to milliseconds.
416+
Converts the given hour count to milliseconds.
417417

418418
## Type signature
419419

@@ -434,11 +434,11 @@ fromHours(1);
434434

435435
## Questions
436436

437-
- How to find how many milliseconds are in given number of hours?
437+
- How to find how many milliseconds are in a given number of hours?
438438

439439
# fromMinutes
440440

441-
Converts given minute count to milliseconds.
441+
Converts the given minute count to milliseconds.
442442

443443
## Type signature
444444

@@ -459,11 +459,11 @@ fromMinutes(1);
459459

460460
## Questions
461461

462-
- How to find how many milliseconds are in given number of minutes?
462+
- How to find how many milliseconds are in a given number of minutes?
463463

464464
# fromSeconds
465465

466-
Converts given second count to milliseconds.
466+
Converts the given second count to milliseconds.
467467

468468
## Type signature
469469

@@ -484,11 +484,11 @@ fromSeconds(1);
484484

485485
## Questions
486486

487-
- How to find how many milliseconds are in given number of seconds?
487+
- How to find how many milliseconds are in a given number of seconds?
488488

489489
# joinDateTime
490490

491-
Joins a date time pair into a date time string.
491+
Joins a date-time pair into a date-time string.
492492

493493
## Type signature
494494

@@ -509,7 +509,7 @@ joinDateTime("2019-01-15", "13:54:33.232Z");
509509

510510
## Questions
511511

512-
- How to join date and time to get ISO compliant date time string?
512+
- How to join date and time to get ISO-compliant date-time string?
513513

514514
# leapYear
515515

@@ -568,7 +568,7 @@ parseHourMinutePair("12:34");
568568

569569
# splitDateTime
570570

571-
Splits a date time string into a date time pair.
571+
Splits a date-time string into a date-time pair.
572572

573573
## Type signature
574574

@@ -589,7 +589,7 @@ splitDateTime("2019-01-15T13:54:33.232Z");
589589

590590
## Questions
591591

592-
- How to split ISO compliant date time string into a date and time pair?
592+
- How to split ISO-compliant date-time string into a date and time pair?
593593

594594
# startOfDay
595595

@@ -614,7 +614,7 @@ endOfDay(new Date("2019-01-01T13:54:33.232Z"));
614614

615615
## Questions
616616

617-
- How to find a date of a start of a given day?
617+
- How to find a date of the start of a given day?
618618

619619
# subtractDays
620620

@@ -668,7 +668,7 @@ toDate(new Date("2019-01-15T12:00:00.000Z"));
668668

669669
# toDates
670670

671-
Converts given array of values into Dates using the Date constructor.
671+
Converts the given array of values into Dates using the Date constructor.
672672

673673
## Type signature
674674

@@ -689,7 +689,7 @@ toDates(["2019-01-15T13:54:33.232Z", new Date("2019-01-15T13:54:33.232Z").valueO
689689

690690
## Questions
691691

692-
- How to convert array of string and timestamps into an array of Date objects?
692+
- How to convert an array of string and timestamps into an array of Date objects?
693693

694694
# toDays
695695

@@ -743,7 +743,7 @@ toHours(3600000);
743743

744744
# toISO
745745

746-
Returns an ISO compliant date time string.
746+
Returns an ISO-compliant date-time string.
747747

748748
## Type signature
749749

@@ -764,7 +764,7 @@ toISO(new Date("2019-04-24T13:54:33.232Z"));
764764

765765
## Questions
766766

767-
- How to convert Date object to ISO compliant date string?
767+
- How to convert Date object to ISO-compliant date string?
768768

769769
# toMinutes
770770

date/clamp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"questions": [
12-
"How to clamp a date to a desired date range?",
12+
"How to clamp a date to the desired date range?",
1313
"How to enforce a date to be in a given date range?"
1414
]
1515
}

0 commit comments

Comments
 (0)