Introduce group basic federation, event new page and notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export function buildObjectCollection<T, U>(collection: T[] | undefined, builder: (new (p: T) => U)) {
|
||||
export function buildObjectCollection<T, U>(collection: T[] | undefined, builder: new (p: T) => U) {
|
||||
if (!collection || Array.isArray(collection) === false) return [];
|
||||
|
||||
return collection.map(v => new builder(v));
|
||||
return collection.map((v) => new builder(v));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user