• Parses the given string as a CSS time value and returns the result in milliseconds.

    See https://developer.mozilla.org/en-US/docs/Web/CSS/time

    Parameters

    • time: undefined | null | string = "0s"

      A CSS Time value. If "", null, or undefined is given, 0 is returned.

    Returns number

    The result in milliseconds, or NaN if the input was invalid