Fix: fix tests

This commit is contained in:
Pieter Vander Vennet 2025-08-26 18:00:46 +02:00
parent 38191309ca
commit 8f776bf030

View file

@ -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[] {