Sha256: c478aa13624846b5edf4711194a0564b207f673dc292e2b239241217782672d4
Contents?: true
Size: 315 Bytes
Versions: 211
Compression:
Stored size: 315 Bytes
Contents
const Raindrops = () => ({ convert: (n) => { let result = ''; if (n % 3 === 0) { result += 'Pling'; } if (n % 5 === 0) { result += 'Plang'; } if (n % 7 === 0) { result += 'Plong'; } return result === '' ? n.toString() : result; } }); export default Raindrops;
Version data entries
211 entries across 211 versions & 1 rubygems