mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-15 09:26:40 +00:00
Api changes
This commit is contained in:
8
server/utils/stoi.ts
Normal file
8
server/utils/stoi.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export default function stoi(val: any) {
|
||||
if (typeof val === "string") {
|
||||
return parseInt(val)
|
||||
}
|
||||
else {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user