From 0f8a790cc317f91c35a79eaf14e265c43879c3b3 Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Fri, 28 Jul 2023 21:10:15 +0300 Subject: [PATCH] Refactor: Improve docstring for dateDiff utils function (#3001) --- src/common/utils.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/utils.js b/src/common/utils.js index 6f065cb..914e165 100644 --- a/src/common/utils.js +++ b/src/common/utils.js @@ -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);