@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
12 lines • 424 B
TypeScript
/**
* This will get the next zero-based index based on the length of an array
* by default it looks forward but if back===true looks backwards
* if going forward past the end it cycles back to zero
*
* @param length
* @param current
* @param back
* @returns
*/
export declare function getNextIndex(length: number, current: number, back?: boolean): number;
//# sourceMappingURL=getNextIndex.d.ts.map