Skip to content

Commit

Permalink
feat(utils): add isNumeric method
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkaroid committed Jun 5, 2022
1 parent 5003f84 commit 093acc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ async function mock(url: string) {
}
}

export const isNumeric = (val: string) : boolean => {
return !isNaN(Number(val));
};


export { getPururinInfo, getPururinPageCount, getUrl, getId, getDate, timeAgo, mock };

0 comments on commit 093acc0

Please sign in to comment.