Closed bhishp closed 3 years ago
Parse will throw an exception with invalid input (durationString is undefined | empty | invalid iso string). Wrapping in try/catch will handle these gracefully.
Sorry for the VERY late reply. I think I prefer if the function throws so that you'll have to handle the exception in the calling code.
Parse will throw an exception with invalid input (durationString is undefined | empty | invalid iso string). Wrapping in try/catch will handle these gracefully.