mirror of
https://github.com/flyer1b/LightRead-master.git
synced 2026-07-22 09:00:26 +00:00
3 lines
No EOL
114 B
TypeScript
3 lines
No EOL
114 B
TypeScript
export const wrapAround = (value: number, size: number): number => {
|
|
return ((value % size) + size) % size
|
|
} |