So we’re all familiar with the use of isOpen() to set active styling in a nav for a page and its children. However, I have a nav where items are showing under a “products” nav item, but they’re actually all top-level URLs (not my choice).
So I know that I can do a bunch of or options in the conditional statement, but is it possible to pass an array of pages to isOpen() to make my code less cluttered and easier to maintain?