diff options
Diffstat (limited to 'node_modules/date-fns/esm/secondsToMilliseconds/index.js')
| -rw-r--r-- | node_modules/date-fns/esm/secondsToMilliseconds/index.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/date-fns/esm/secondsToMilliseconds/index.js b/node_modules/date-fns/esm/secondsToMilliseconds/index.js deleted file mode 100644 index cd45ed1..0000000 --- a/node_modules/date-fns/esm/secondsToMilliseconds/index.js +++ /dev/null @@ -1,24 +0,0 @@ -import requiredArgs from "../_lib/requiredArgs/index.js"; -import { millisecondsInSecond } from "../constants/index.js"; -/** - * @name secondsToMilliseconds - * @category Conversion Helpers - * @summary Convert seconds to milliseconds. - * - * @description - * Convert a number of seconds to a full number of milliseconds. - * - * @param {number} seconds - number of seconds to be converted - * - * @returns {number} the number of seconds converted in milliseconds - * @throws {TypeError} 1 argument required - * - * @example - * // Convert 2 seconds into milliseconds - * const result = secondsToMilliseconds(2) - * //=> 2000 - */ -export default function secondsToMilliseconds(seconds) { - requiredArgs(1, arguments); - return seconds * millisecondsInSecond; -}
\ No newline at end of file |
