mirror of
https://github.com/photonstorm/phaser
synced 2025-01-12 05:08:54 +00:00
8 lines
179 B
JavaScript
8 lines
179 B
JavaScript
|
var IsEven = function (value)
|
||
|
{
|
||
|
// Use abstract equality == for "is number" test
|
||
|
return (value == parseFloat(value)) ? !(value % 2) : void 0;
|
||
|
};
|
||
|
|
||
|
module.exports = IsEven;
|