fix(core): update

This commit is contained in:
2021-01-28 02:21:23 +00:00
parent 28cd849d0d
commit 9260d653a1
3 changed files with 57 additions and 19 deletions

View File

@ -76,7 +76,7 @@ export class Smartjson {
/**
* Decorator that marks a property as foldable
*/
export let foldDec = () => {
export const foldDec = () => {
return (target: any, key: string) => {
if (!target.saveableProperties) {
target.saveableProperties = [];
@ -84,3 +84,9 @@ export let foldDec = () => {
target.saveableProperties.push(key);
};
};
export const deepEqualObjects = (object1: any, object2: any): boolean => {
const object1String = stringify(object1);
const object2String = stringify(object2);
return object1String === object2String;
}