forked from MapComplete/MapComplete
Fix: fix tests
This commit is contained in:
parent
38191309ca
commit
8f776bf030
1 changed files with 4 additions and 4 deletions
|
@ -98,7 +98,7 @@ export class Lists {
|
|||
/**
|
||||
* In the given list, all values which are lists will be merged with the values, e.g.
|
||||
*
|
||||
* Utils.Flatten([ [1,2], 3, [4, [5 ,6]] ]) // => [1, 2, 3, 4, [5, 6]]
|
||||
* Lists.flatten([ [1,2], 3, [4, [5 ,6]] ]) // => [1, 2, 3, 4, [5, 6]]
|
||||
*/
|
||||
public static flatten<T>(list: (T | T[])[]): T[] {
|
||||
const result = []
|
||||
|
@ -155,9 +155,9 @@ export class Lists {
|
|||
/**
|
||||
* Finds all duplicates in a list of strings
|
||||
*
|
||||
* Utils.Duplicates(["a", "b", "c"]) // => []
|
||||
* Utils.Duplicates(["a", "b","c","b"] // => ["b"]
|
||||
* Utils.Duplicates(["a", "b","c","b","b"] // => ["b"]
|
||||
* Lists.duplicates(["a", "b", "c"]) // => []
|
||||
* Lists.duplicates(["a", "b","c","b"] // => ["b"]
|
||||
* Lists.duplicates(["a", "b","c","b","b"] // => ["b"]
|
||||
*
|
||||
*/
|
||||
public static duplicates(arr: string[]): string[] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue