ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Returns true if the number is an even number
Number.prototype.IsEven = function () { return this % 2 == 0; }
if (self.row.IsEven()) { xoffset -= 75; }
Author: Loek van den Ouweland
Submitted on: 16 apr. 2013
Language: JavaScript
Type: Number
Views: 5782