News for hackers. Stuff that matters.
Re:The kind of company I want to be a part of by ashv on Tuesday November 11, 2025 @10:31AM (#45888424)
There's an npm package for that! https://www.npmjs.com/package/pluralize
Re:The kind of company I want to be a part of by krowek on Friday November 14, 2025 @03:11AM (#45924895)
There's always an NPM package, even for trivial things like

  function fn(val) {
    return typeof val === "number" &&
      isFinite(val) &&
      Math.floor(val) === val;
  };