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

Function getFirstAnchor

lib/test/angular/1.6.7/angular.js:5307–5316  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

5305 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
5306 // and working in all supported browsers.)
5307 function getFirstAnchor(list) {
5308 var result = null;
5309 Array.prototype.some.call(list, function(element) {
5310 if (nodeName_(element) === 'a') {
5311 result = element;
5312 return true;
5313 }
5314 });
5315 return result;
5316 }
5317
5318 function getYOffset() {
5319

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected