mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-14 10:58:34 +00:00
Refactor: Improve docstring for dateDiff utils function (#3001)
This commit is contained in:
committed by
GitHub
parent
f3341ddf5f
commit
0f8a790cc3
+5
-4
@@ -442,10 +442,11 @@ const parseEmojis = (str) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* Get diff in minutes
|
||||
* @param {Date} d1
|
||||
* @param {Date} d2
|
||||
* @returns {number}
|
||||
* Get diff in minutes between two dates.
|
||||
*
|
||||
* @param {Date} d1 First date.
|
||||
* @param {Date} d2 Second date.
|
||||
* @returns {number} Number of minutes between the two dates.
|
||||
*/
|
||||
const dateDiff = (d1, d2) => {
|
||||
const date1 = new Date(d1);
|
||||
|
||||
Reference in New Issue
Block a user