mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-05 13:20:32 -05:00
6 lines
118 B
JavaScript
6 lines
118 B
JavaScript
function getNextId(items) {
|
|
return items.reduce((id, x) => Math.max(id, x.id), 1) + 1;
|
|
}
|
|
|
|
export default getNextId;
|