spin.js 110 Bytes Raw Blame History Permalink 1 2 3 4 5 'use strict' module.exports = function spin (spinstr, spun) { return spinstr[spun % spinstr.length] }