Skip to main content

Function: toMs()

toMs(value, what?): number

Milliseconds of value; throws a TypeError naming what when it is not a duration.

Parameters​

value​

Duration

what?​

string

Returns​

number