code: function getHighlightingProxy(item, match, document) {
    if (typeof Proxy === 'undefined') {
      return item;
    }
    return new Proxy({}, {
      get: function(rcvr, name) {
        var value = item[name];
        if (name !== 'name') {
          return value;
        }
  
        var startMatch = value.indexOf(match);
        if (startMatch === -1) {
          return value;
        }
  
        var before = value.substr(0, startMatch);
        var after = value.substr(startMatch + match.length);
        var parent = document.createElement('span');
        parent.appendChild(document.createTextNode(before));
        var highlight = document.createElement('span');
        highlight.classList.add('gcli-menu-typed');
        highlight.appendChild(document.createTextNode(match));
        highlight.dir = bidiUtils.getTextDirection(match);
        parent.appendChild(highlight);
        parent.appendChild(document.createTextNode(after));
        return parent;
      }
    });
  }
docs: Create a proxy around an item that highlights matching text