repl.txt (1182B)
1 2 {{alias}}( value, a, b[, left, right] ) 3 Tests if a value is an array-like object where every element is between two 4 values. 5 6 Parameters 7 ---------- 8 value: any 9 Input value. 10 11 a: any 12 Left comparison value. 13 14 b: any 15 Right comparison value. 16 17 left: string (optional) 18 Indicates whether the left comparison value is inclusive. Must be either 19 'closed' or 'open'. Default: 'closed' (i.e., inclusive). 20 21 right: string (optional) 22 Indicates whether the right comparison value is inclusive. Must be 23 either 'closed' or 'open'. Default: 'closed' (i.e., inclusive). 24 25 Returns 26 ------- 27 bool: boolean 28 Boolean indicating whether a value is an array-like object where every 29 element is between two values. 30 31 Examples 32 -------- 33 > var arr = [ 3.0, 3.14, 4.0 ]; 34 > var bool = {{alias}}( arr, 3.0, 4.0 ) 35 true 36 > bool = {{alias}}( arr, 3.14, 4.0 ) 37 false 38 > bool = {{alias}}( arr, 3.0, 3.14 ) 39 false 40 > bool = {{alias}}( arr, 3.0, 4.0, 'open', 'closed' ) 41 false 42 > bool = {{alias}}( arr, 3.0, 4.0, 'closed', 'open' ) 43 false 44 45 See Also 46 -------- 47