repl.txt (631B)
1 2 {{alias}}( x ) 3 Tests if a finite numeric value is an even number. 4 5 The function assumes a finite number. If provided positive or negative 6 infinity, the function will return `true`, when, in fact, the result is 7 undefined. 8 9 Parameters 10 ---------- 11 x: number 12 Value to test. 13 14 Returns 15 ------- 16 bool: boolean 17 Boolean indicating whether the value is an even number. 18 19 Examples 20 -------- 21 > var bool = {{alias}}( 5.0 ) 22 false 23 > bool = {{alias}}( -2.0 ) 24 true 25 > bool = {{alias}}( 0.0 ) 26 true 27 > bool = {{alias}}( NaN ) 28 false 29 30 See Also 31 -------- 32