lidarr/frontend/src/Utilities/State/getNextId.js
Qstick 9fe13a2d14 New: Custom Formats
Co-Authored-By: ta264 <ta264@users.noreply.github.com>
2023-01-22 16:38:04 -06:00

5 lines
118 B
JavaScript

function getNextId(items) {
return items.reduce((id, x) => Math.max(id, x.id), 1) + 1;
}
export default getNextId;