js/core/List.js
function (fnc, scope) {
            scope = scope || this;
            var b = false,
                items = this.$items,
                length = items.length;

            for (var i = 0; i < length; i++) {
                b = fnc.call(scope, items[i], i, this.$items);
                if (b === true) {
                    break;
                }
            }

            return i < length ? items[i] : null;
        }
function (fnc, scope) {
            scope = scope || this;
            var b = false,
                items = this.$items,
                length = items.length;

            for (var i = 0; i < length; i++) {
                b = fnc.call(scope, items[i], i, this.$items);
                if (b === true) {
                    break;
                }
            }

            return i < length ? items[i] : null;
        }
function ( fnc , scope ) { scope = scope || this ; var b = false , items = this . $items , length = items . length ; for ( var i = 0 ; i < length ; i ++ ) { b = fnc . call ( scope , items [ i ] , i , this . $items ) ; if ( b === true ) { break ; } } return i < length ? items [ i ] : null ; }
Iterates over all items with the function.
Returns the element when the function returns true.

@param {Function} fnc Function to execute on each value in the list
@param {Object} scope The this object
@returns {*}
Iterates over all items with the function . Returns the element when the function returns true .