IsOdd

Number.prototype.IsOdd = function () {
    return this % 2 == 1;
}
Example:
if (self.row.IsOdd()) {
    xoffset += 75;
}

Description

Returns true if the number is an odd number

Details

Double click on the code to select all.

 

;