Skip to content

getNextId

returns the ID of an item that is after the specified item, either directly after or after a number of items (defined by the step)

function getNextId(
// the item ID
id: number|string,
// the step (by default, 1)
step?: number
): id

id the item ID