MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / getFirstAnchor

Function getFirstAnchor

web/static/bower_components/angular/angular.js:4681–4690  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

4679 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
4680 // and working in all supported browsers.)
4681 function getFirstAnchor(list) {
4682 var result = null;
4683 Array.prototype.some.call(list, function(element) {
4684 if (nodeName_(element) === 'a') {
4685 result = element;
4686 return true;
4687 }
4688 });
4689 return result;
4690 }
4691
4692 function getYOffset() {
4693

Callers 1

scrollFunction · 0.85

Calls 1

nodeName_Function · 0.85

Tested by

no test coverage detected