Skip to content

Commit

Permalink
fix isNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
itxtoledo committed Jul 22, 2022
1 parent 45c8bac commit 2514d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]:coinsambacom/js-exchanges-connector.git",
"author": "Gustavo <[email protected]>",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/utils/isNumber.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const isNumber = (value: any) => !Number.isNaN(Number(value));
export const isNumber = (value: any) =>
value != null && !Number.isNaN(Number(value));

0 comments on commit 2514d1c

Please sign in to comment.