var Scale = function (rect, x, y){ if (y === undefined) { y = x; } rect.width *= x; rect.height *= y; return rect; } ; module.exports = Scale;