diff --git a/package.json b/package.json index a4c20ae..d020ac6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@coinsamba/js-exchanges-connector", "description": "Collection of JavaScript implementations of cryptocurrency exchange APIs", - "version": "1.2.5", + "version": "1.2.6", "repository": "git@github.com:coinsambacom/js-exchanges-connector.git", "author": "Gustavo ", "license": "MIT", diff --git a/src/utils/isNumber.ts b/src/utils/isNumber.ts index 690b38e..d53724d 100644 --- a/src/utils/isNumber.ts +++ b/src/utils/isNumber.ts @@ -1 +1,2 @@ -export const isNumber = (value: any) => !Number.isNaN(Number(value)); +export const isNumber = (value: any) => + value != null && !Number.isNaN(Number(value));