mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
4 lines
105 B
TypeScript
4 lines
105 B
TypeScript
|
export const collectIds = <T>(items: { id?: T }[]): T[] => {
|
||
|
return items.map((item) => item.id);
|
||
|
};
|