- Source:
Methods
(static) capitalize(str) → {String}
- Source:
Capitalizes the first character of the provided string
Parameters:
| Name | Type | Description |
|---|---|---|
str |
String | string to capitalize |
Returns:
capitalized string
- Type
- String
(static) parseIntervalString(str) → {Object}
- Source:
Determines the days, hours, minutes, and seconds represented in a provided string (e.g., '1d2h3m4s', '10h15s', '5m')
Parameters:
| Name | Type | Description |
|---|---|---|
str |
String |
Returns:
object of properties for each unit of time: day, hr, min, and sec
- Type
- Object