repl.txt (1299B)
1 2 {{alias}}( value ) 3 Tests if a value is a 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 a number. 14 15 Examples 16 -------- 17 > var bool = {{alias}}( 3.14 ) 18 true 19 > bool = {{alias}}( new Number( 3.14 ) ) 20 true 21 > bool = {{alias}}( NaN ) 22 true 23 > bool = {{alias}}( null ) 24 false 25 26 27 {{alias}}.isPrimitive( value ) 28 Tests if a value is a number primitive. 29 30 Parameters 31 ---------- 32 value: any 33 Value to test. 34 35 Returns 36 ------- 37 bool: boolean 38 Boolean indicating whether value is a number primitive. 39 40 Examples 41 -------- 42 > var bool = {{alias}}.isPrimitive( 3.14 ) 43 true 44 > bool = {{alias}}.isPrimitive( NaN ) 45 true 46 > bool = {{alias}}.isPrimitive( new Number( 3.14 ) ) 47 false 48 49 50 {{alias}}.isObject( value ) 51 Tests if a value is a `Number` object. 52 53 Parameters 54 ---------- 55 value: any 56 Value to test. 57 58 Returns 59 ------- 60 bool: boolean 61 Boolean indicating whether value is a `Number` object. 62 63 Examples 64 -------- 65 > var bool = {{alias}}.isObject( 3.14 ) 66 false 67 > bool = {{alias}}.isObject( new Number( 3.14 ) ) 68 true 69 70 See Also 71 -------- 72