Sha256: 4900ca301084ec3073fca52858a19d57f8e3932013457d630f38e9e7f29522dd
Contents?: true
Size: 183 Bytes
Versions: 396
Compression:
Stored size: 183 Bytes
Contents
export default class Acronyms { static parse(phrase) { return phrase.match(/[A-Z]+[a-z]*|[a-z]+/g) .reduce((acronym, word) => acronym += word[0].toUpperCase(), ''); } }
Version data entries
396 entries across 396 versions & 1 rubygems