forked from MapComplete/MapComplete
refactoring: Remove more obsoleted code, add copyright tab
This commit is contained in:
parent
f8d34648a0
commit
042d400dc4
20 changed files with 44 additions and 342 deletions
6
Utils.ts
6
Utils.ts
|
@ -308,6 +308,12 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
return str
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new array with all elements from 'arr' in such a way that every element will be kept only once
|
||||
* Elements are returned in the same order as they appear in the lists
|
||||
* @param arr
|
||||
* @constructor
|
||||
*/
|
||||
public static Dedup(arr: string[]): string[] {
|
||||
if (arr === undefined) {
|
||||
return undefined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue