repl.txt (1695B)
1 2 {{alias}}( value ) 3 Tests if a value is an array-like object containing only nonpositive 4 integers. 5 6 Parameters 7 ---------- 8 value: any 9 Value to test. 10 11 Returns 12 ------- 13 bool: boolean 14 Boolean indicating whether value is an array-like object containing only 15 nonpositive integers. 16 17 Examples 18 -------- 19 > var bool = {{alias}}( [ -3.0, new Number(-3.0) ] ) 20 true 21 > bool = {{alias}}( [ -3.0, '-3.0' ] ) 22 false 23 24 25 {{alias}}.primitives( value ) 26 Tests if a value is an array-like object containing only nonpositive 27 primitive integer values. 28 29 Parameters 30 ---------- 31 value: any 32 Value to test. 33 34 Returns 35 ------- 36 bool: boolean 37 Boolean indicating whether value is an array-like object containing only 38 nonpositive primitive integer values. 39 40 Examples 41 -------- 42 > var bool = {{alias}}.primitives( [ -1.0, 0.0, -10.0 ] ) 43 true 44 > bool = {{alias}}.primitives( [ -3.0, new Number(-1.0) ] ) 45 false 46 47 48 {{alias}}.objects( value ) 49 Tests if a value is an array-like object containing only number objects 50 having nonpositive integer values. 51 52 Parameters 53 ---------- 54 value: any 55 Value to test. 56 57 Returns 58 ------- 59 bool: boolean 60 Boolean indicating whether value is an array-like object containing only 61 number objects having nonpositive integer values. 62 63 Examples 64 -------- 65 > var bool = {{alias}}.objects( [ new Number(-1.0), new Number(-10.0) ] ) 66 true 67 > bool = {{alias}}.objects( [ -1.0, 0.0, -10.0 ] ) 68 false 69 > bool = {{alias}}.objects( [ -3.0, new Number(-1.0) ] ) 70 false 71 72 See Also 73 -------- 74