Loops t so that it wraps into the range [0, length).
t
[0, length)
Unlike the % operator (a remainder), this is a true floored modulo, so negative t wraps to a positive value: repeat(-1, 3) === 2.
%
repeat(-1, 3) === 2
Based on https://github.com/angus-c/just/blob/master/packages/number-modulo/index.mjs
Loops
tso that it wraps into the range[0, length).Unlike the
%operator (a remainder), this is a true floored modulo, so negativetwraps to a positive value:repeat(-1, 3) === 2.Based on https://github.com/angus-c/just/blob/master/packages/number-modulo/index.mjs