2023-07-24 11:13:08 +08:00

6 lines
105 B
JavaScript

'use strict'
module.exports = function spin (spinstr, spun) {
return spinstr[spun % spinstr.length]
}