This commit is contained in:
schmelczerandras 2020-11-04 16:01:17 +01:00
parent 1ce961d6c2
commit 99cdb62928
76 changed files with 340 additions and 433 deletions

View file

@ -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;
});
};