File Explorer

/var/lang/lib/node_modules/npm/node_modules/undici/lib/mock

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

pluralizer.js495 B · 30 lines
'use strict' 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 }  }}