IsEven

Number.prototype.IsEven = function () {
    return this % 2 == 0;
}
Example:
if (self.row.IsEven()) {
    xoffset -= 75;
}

Description

Returns true if the number is an even number

Details

Double click on the code to select all.

 

;