feat(utils): add isNumeric method
このコミットが含まれているのは:
コミット
093acc07fe
|
@ -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 };
|
export { getPururinInfo, getPururinPageCount, getUrl, getId, getDate, timeAgo, mock };
|
読み込み中…
新しいイシューから参照