* if a `Date` is passed to this function it will be converted to an ISO string * @param {*} date - the object to attempt to coerce into an ISO date string * @return {string} - the ISO representation of `date` or whatever was passed in if it was not a date
(date)
| 128 | * @return {string} - the ISO representation of `date` or whatever was passed in if it was not a date |
| 129 | */ |
| 130 | _dateToISO(date) { |
| 131 | if (date && (date instanceof Date)) { |
| 132 | date = date.toISOString(); |
| 133 | } |
| 134 | |
| 135 | return date; |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * A function that receives the result of the API request. |
no outgoing calls
no test coverage detected