repl.txt (1464B)
1 2 {{alias}}( value ) 3 Tests if a value is an odd number. 4 5 Parameters 6 ---------- 7 value: any 8 Value to test. 9 10 Returns 11 ------- 12 bool: boolean 13 Boolean indicating whether value is an odd number. 14 15 Examples 16 -------- 17 > var bool = {{alias}}( 5.0 ) 18 true 19 > bool = {{alias}}( new Number( 5.0 ) ) 20 true 21 > bool = {{alias}}( 4.0 ) 22 false 23 > bool = {{alias}}( new Number( 4.0 ) ) 24 false 25 > bool = {{alias}}( -3.14 ) 26 false 27 > bool = {{alias}}( null ) 28 false 29 30 {{alias}}.isPrimitive( value ) 31 Tests if a value is a number primitive that is an odd number. 32 33 Parameters 34 ---------- 35 value: any 36 Value to test. 37 38 Returns 39 ------- 40 bool: boolean 41 Boolean indicating whether value is a number primitive that is an odd 42 number. 43 44 Examples 45 -------- 46 > var bool = {{alias}}.isPrimitive( -5.0 ) 47 true 48 > bool = {{alias}}.isPrimitive( new Number( -5.0 ) ) 49 false 50 51 52 {{alias}}.isObject( value ) 53 Tests if a value is a number object that has an odd number value. 54 55 Parameters 56 ---------- 57 value: any 58 Value to test. 59 60 Returns 61 ------- 62 bool: boolean 63 Boolean indicating whether value is a number object that has an odd 64 number value. 65 66 Examples 67 -------- 68 > var bool = {{alias}}.isObject( 5.0 ) 69 false 70 > bool = {{alias}}.isObject( new Number( 5.0 ) ) 71 true 72 73 See Also 74 -------- 75