5 lines
105 B
JavaScript
5 lines
105 B
JavaScript
'use strict'
|
|
|
|
module.exports = function spin (spinstr, spun) {
|
|
return spinstr[spun % spinstr.length]
|
|
}
|