Refactor
This commit is contained in:
parent
1ce961d6c2
commit
99cdb62928
76 changed files with 340 additions and 433 deletions
|
|
@ -1,10 +0,0 @@
|
|||
export const serialize = (object: any): string => {
|
||||
return JSON.stringify(object, (_, value) => {
|
||||
if (value?.__serializable_type) {
|
||||
const props = value.toArray() as Array<any>;
|
||||
props.unshift(value.__serializable_type);
|
||||
return props;
|
||||
}
|
||||
return value?.toFixed ? Number(value.toFixed(3)) : value;
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue