mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
5 lines
118 B
JavaScript
5 lines
118 B
JavaScript
function getNextId(items) {
|
|
return items.reduce((id, x) => Math.max(id, x.id), 1) + 1;
|
|
}
|
|
|
|
export default getNextId;
|