Sha256: 174f4dee4b92a2079fa1be7dd2df58b243e74cd22902882f012feb1bf7586563
Contents?: true
Size: 384 Bytes
Versions: 226
Compression:
Stored size: 384 Bytes
Contents
export default class Raindrops { convert(drops: number): string { let converted = '' if (drops % 3 === 0) { converted += 'Pling' } if (drops % 5 === 0) { converted += 'Plang' } if (drops % 7 === 0) { converted += 'Plong' } return converted ? converted : drops.toString() } }
Version data entries
226 entries across 226 versions & 1 rubygems