MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / getFirstAnchor

Function getFirstAnchor

lib/test/angular/1.8.0/angular.js:5418–5427  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

5416 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
5417 // and working in all supported browsers.)
5418 function getFirstAnchor(list) {
5419 var result = null;
5420 Array.prototype.some.call(list, function(element) {
5421 if (nodeName_(element) === 'a') {
5422 result = element;
5423 return true;
5424 }
5425 });
5426 return result;
5427 }
5428
5429 function getYOffset() {
5430

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected