diff options
Diffstat (limited to 'src/tools/json-diff/json-diff.models.ts')
-rw-r--r-- | src/tools/json-diff/json-diff.models.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/json-diff/json-diff.models.ts b/src/tools/json-diff/json-diff.models.ts index ee6ba4b..54bb253 100644 --- a/src/tools/json-diff/json-diff.models.ts +++ b/src/tools/json-diff/json-diff.models.ts @@ -46,8 +46,8 @@ function diffObjects( ): Difference[] { const keys = Object.keys({ ...obj, ...newObj }); return keys - .map((key) => createDifference(obj?.[key], newObj?.[key], key, { onlyShowDifferences })) - .filter((diff) => !onlyShowDifferences || diff.status !== 'unchanged'); + .map(key => createDifference(obj?.[key], newObj?.[key], key, { onlyShowDifferences })) + .filter(diff => !onlyShowDifferences || diff.status !== 'unchanged'); } function createDifference( @@ -99,7 +99,7 @@ function diffArrays( const maxLength = Math.max(0, arr?.length, newArr?.length); return Array.from({ length: maxLength }, (_, i) => createDifference(arr?.[i], newArr?.[i], i, { onlyShowDifferences }), - ).filter((diff) => !onlyShowDifferences || diff.status !== 'unchanged'); + ).filter(diff => !onlyShowDifferences || diff.status !== 'unchanged'); } function getType(value: unknown): 'object' | 'array' | 'value' { |