This commit is contained in:
2026-03-18 20:54:43 +01:00
parent b3c8b77f12
commit 9fe656b34c
8058 changed files with 912898 additions and 23 deletions
+25
View File
@@ -0,0 +1,25 @@
import { secondsInMinute } from "./constants.mjs";
/**
* @name minutesToSeconds
* @category Conversion Helpers
* @summary Convert minutes to seconds.
*
* @description
* Convert a number of minutes to a full number of seconds.
*
* @param minutes - The number of minutes to be converted
*
* @returns The number of minutes converted in seconds
*
* @example
* // Convert 2 minutes to seconds
* const result = minutesToSeconds(2)
* //=> 120
*/
export function minutesToSeconds(minutes) {
return Math.trunc(minutes * secondsInMinute);
}
// Fallback for modularized imports:
export default minutesToSeconds;