Buckets:
| const singulars = { | |
| pronoun: 'it', | |
| is: 'is', | |
| was: 'was', | |
| this: 'this' | |
| } | |
| const plurals = { | |
| pronoun: 'they', | |
| is: 'are', | |
| was: 'were', | |
| this: 'these' | |
| } | |
| module.exports = class Pluralizer { | |
| constructor (singular, plural) { | |
| this.singular = singular | |
| this.plural = plural | |
| } | |
| pluralize (count) { | |
| const one = count === 1 | |
| const keys = one ? singulars : plurals | |
| const noun = one ? this.singular : this.plural | |
| return { ...keys, count, noun } | |
| } | |
| } | |
Xet Storage Details
- Size:
- 495 Bytes
- Xet hash:
- 2b33b7f13a8429c481651c10cfb67d42e5641d331873617a027be6930e74e37d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.