mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
prefer-const
This commit is contained in:
@@ -73,7 +73,7 @@ function getKnownAuthorMaps() {
|
||||
}
|
||||
|
||||
function deduplicate<T>(array: T[]): T[] {
|
||||
let result: T[] = [];
|
||||
const result: T[] = [];
|
||||
if (array) {
|
||||
for (const item of array) {
|
||||
if (result.indexOf(item) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user