In the demo page, Dashboard is a top-level nav item which has no children. It also has a link to "dashboard". Nav items with these criteria should not show the caret.
// link exists, and no items - don't show nav carets
!!listitem.link && (!listitem.items || !listitem.items.length)
In the demo page, Dashboard is a top-level nav item which has no children. It also has a link to "dashboard". Nav items with these criteria should not show the caret.