Skip to main content
Module

x/rambda/source/nextIndex.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function nextIndex(index, list) { return index >= list.length - 1 ? 0 : index + 1}