mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
dbb6ef7664
Co-Authored-By: ta264 <ta264@users.noreply.github.com>
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;
|