refactor(arabot): add string type to isNumber function

This commit is contained in:
Anthony Berg 2023-11-18 23:19:21 +00:00
parent 81f5db4b0a
commit b39cf0b44d

View File

@ -19,10 +19,10 @@
/**
* Checks if any parsed value is a number.
* @param number check if variable is a number
* @param number check if a string is a number
* @returns {boolean} true if it is a number
*/
export function isNumber(number: any) {
export function isNumber(number: string) {
return !Number.isNaN(+number);
}