code refactor

This commit is contained in:
MaysWind
2023-07-02 00:51:26 +08:00
parent 4e8f530fbb
commit 9adfd286f9
17 changed files with 139 additions and 67 deletions
+2 -4
View File
@@ -1,5 +1,3 @@
import { isEnableThousandsSeparator } from './settings.js';
export function isFunction(val) {
return typeof(val) === 'function';
}
@@ -79,8 +77,8 @@ export function isEquals(obj1, obj2) {
}
}
export function appendThousandsSeparator(value) {
if (!isEnableThousandsSeparator() || value.length <= 3) {
export function appendThousandsSeparator(value, enable) {
if (!enable || value.length <= 3) {
return value;
}