Build a Deduplicating Conditional className Utility — Easy JavaScript/TypeScript Practice Problem