index.js
function(iteratee, context) {
        context = context || this;
        for (var x = this.origin.x, x2 = this.corner.x; x < x2; x++) {
            for (var y = this.origin.y, y2 = this.corner.y; y < y2; y++) {
                iteratee.call(context, x, y);
            }
        }
    }
function(iteratee, context) {
        context = context || this;
        for (var x = this.origin.x, x2 = this.corner.x; x < x2; x++) {
            for (var y = this.origin.y, y2 = this.corner.y; y < y2; y++) {
                iteratee.call(context, x, y);
            }
        }
    }
function ( iteratee , context ) { context = context || this ; for ( var x = this . origin . x , x2 = this . corner . x ; x < x2 ; x ++ ) { for ( var y = this . origin . y , y2 = this . corner . y ; y < y2 ; y ++ ) { iteratee . call ( context , x , y ) ; } } }
iterate over all points within this rect, invoking `iteratee` for each.
@param {function(number,number)} iteratee - Function to call for each point.
Bound to `context` when given; otherwise it is bound to this rect.
Each invocation of `iteratee` is called with two arguments:
the horizontal and vertical coordinates of the point.
@param {object} [context=this] - Context to bind to `iteratee` (when not `this`).
@memberOf Rectangle.prototype
iterate over all points within this rect invoking iteratee for each .