Skip to content

ms()

Converts a value in the specified unit to milliseconds.

Example:

ts
ms(1, 'min') // 60_000
ms(30, 'sec') // 30_000

Released under the MIT License.