diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-25 16:48:17 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-25 16:48:17 -0600 |
commit | 773ce84f4bf559337e132edd7fcce02a0a2598fd (patch) | |
tree | 5fd0b452b459cc5a5b6a1ed98f2d7b9af950864d /engine/utils/coding.ts | |
parent | dec7b614d895a1b507137e4a96a8999ff63aa179 (diff) | |
download | jumpstorm-773ce84f4bf559337e132edd7fcce02a0a2598fd.tar.gz jumpstorm-773ce84f4bf559337e132edd7fcce02a0a2598fd.zip |
prettier formatting
Diffstat (limited to 'engine/utils/coding.ts')
-rw-r--r-- | engine/utils/coding.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/utils/coding.ts b/engine/utils/coding.ts index 4c1b17f..3f78889 100644 --- a/engine/utils/coding.ts +++ b/engine/utils/coding.ts @@ -1,8 +1,8 @@ const replacer = (_key: any, value: any) => { if (value instanceof Map) { return { - dataType: "Map", - value: Array.from(value.entries()), + dataType: 'Map', + value: Array.from(value.entries()) }; } else { return value; @@ -10,8 +10,8 @@ const replacer = (_key: any, value: any) => { }; const reviver = (_key: any, value: any) => { - if (typeof value === "object" && value !== null) { - if (value.dataType === "Map") { + if (typeof value === 'object' && value !== null) { + if (value.dataType === 'Map') { return new Map(value.value); } } |