Function isDuration

  • Checks if a given object is of type Duration. Note that it does not work for sub classes. However, use this to be robust against different versions of the library in one process instead of instanceof

    Parameters

    • value: any

      Value to check

    Returns value is Duration

    Throws

    nothing

Generated using TypeDoc