* Verifies the given value is numeric like, i.e. 3, "3" and throws an error if it is not. * @param {any} value The value of any type to check. If null or undefined, this method throws an error. * @param {string} message The message to be used if an error is to be thrown * @throws will throw an er
(value: any, message: string)
| 225 | * @throws will throw an error if the value is null or undefined or is not like a number |
| 226 | */ |
| 227 | function checkNumericLike(value: any, message: string) { |
| 228 | if (value === undefined || value === Infinity || isNaN(value)) { // eslint-disable-line |
| 229 | throw message; |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | export default CalendarDate; |
no outgoing calls
no test coverage detected
searching dependent graphs…