code: function getFirstAnchor(list) {
        var result = null;
        Array.prototype.some.call(list, function(element) {
          if (nodeName_(element) === 'a') {
            result = element;
            return true;
          }
        });
        return result;
      }
docs: Helper function to get first anchor from a NodeList (using `Array#some()` instead of `angular#forEach()` since it's more performant and working in all supported browsers.)