Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jordydhoker committed Aug 30, 2023
1 parent 56d884c commit 5d6e16d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const unique = <T, K>(
acc.set(key, item)
return acc
}, new Map())
return Array.from(valueMap.values());
return Array.from(valueMap.values())
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/tests/array.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,19 +396,19 @@ describe('array module', () => {
null,
true,
true,
"true",
'true',
false,
{ id: 'a', word: 'hello' },
{ id: 'a', word: 'hello' },
{ id: 'a', word: 'hello' }
]
const result = _.unique(list)
assert.deepEqual(result, [
null,
true,
"true",
'true',
false,
{ id: 'a', word: 'hello' },
{ id: 'a', word: 'hello' },
{ id: 'a', word: 'hello' }
])
})
})
Expand Down

0 comments on commit 5d6e16d

Please sign in to comment.