optimise ∈ article.tags

  1. You should probably use enum flags

    Enum flags are a clever optimisation technique that make use of bitwise logic operations paired with enumerated types that sadly see a lack of use in more modern codebases and languages such as JavaScript, in spite of enums being otherwise fairly popular in TypeScript.

    enum Guild {
      Mage,
      Rogue,
      Warrior …