aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils/common/number.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/core-utils/common/number.ts')
-rw-r--r--shared/core-utils/common/number.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/core-utils/common/number.ts b/shared/core-utils/common/number.ts
new file mode 100644
index 000000000..9a96dcf5c
--- /dev/null
+++ b/shared/core-utils/common/number.ts
@@ -0,0 +1,7 @@
1function forceNumber (value: any) {
2 return parseInt(value + '')
3}
4
5export {
6 forceNumber
7}