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