forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
9cd7ad597d
commit
69ab755f29
520 changed files with 16616 additions and 13483 deletions
|
|
@ -1784,7 +1784,6 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
return href
|
||||
}
|
||||
|
||||
|
||||
public static sum(list: number[]): number {
|
||||
let total = 0
|
||||
for (const number of list) {
|
||||
|
|
@ -1799,7 +1798,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
* Utils.reorder("test", []) // => "test"
|
||||
*/
|
||||
public static reorder<T extends object>(object: T, order: ReadonlyArray<string>): T {
|
||||
if(typeof object !== "object"){
|
||||
if (typeof object !== "object") {
|
||||
return object
|
||||
}
|
||||
const allKeys = new Set<string>(Object.keys(object))
|
||||
|
|
@ -1813,5 +1812,4 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
}
|
||||
return <T>copy
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue