repl.txt (2275B)
1 2 {{alias}}( value ) 3 Tests if a value is an array-like object containing only symbols. 4 5 In pre-ES2015 environments, the function always returns `false`. 6 7 Parameters 8 ---------- 9 value: any 10 Value to test. 11 12 Returns 13 ------- 14 bool: boolean 15 Boolean indicating whether a value is an array-like object containing 16 only symbols. 17 18 Examples 19 -------- 20 > var bool = {{alias}}( [ Symbol( 'beep' ), Symbol( 'boop' ) ] ) 21 true 22 > bool = {{alias}}( Symbol( 'beep' ) ) 23 false 24 > bool = {{alias}}( [] ) 25 false 26 > bool = {{alias}}( {} ) 27 false 28 > bool = {{alias}}( null ) 29 false 30 > bool = {{alias}}( true ) 31 false 32 33 34 {{alias}}.primitives( value ) 35 Tests if a value is an array-like object containing only `symbol` 36 primitives. 37 38 In pre-ES2015 environments, the function always returns `false`. 39 40 Parameters 41 ---------- 42 value: any 43 Value to test. 44 45 Returns 46 ------- 47 bool: boolean 48 Boolean indicating whether a value is an array-like object containing 49 only `symbol` primitives. 50 51 Examples 52 -------- 53 > var bool = {{alias}}.primitives( [ Symbol( 'beep' ) ] ) 54 true 55 > bool = {{alias}}.primitives( [ Object( Symbol( 'beep' ) ) ] ) 56 false 57 > bool = {{alias}}.primitives( [] ) 58 false 59 > bool = {{alias}}.primitives( {} ) 60 false 61 > bool = {{alias}}.primitives( null ) 62 false 63 > bool = {{alias}}.primitives( true ) 64 false 65 66 67 {{alias}}.objects( value ) 68 Tests if a value is an array-like object containing only `Symbol` 69 objects. 70 71 In pre-ES2015 environments, the function always returns `false`. 72 73 Parameters 74 ---------- 75 value: any 76 Value to test. 77 78 Returns 79 ------- 80 bool: boolean 81 Boolean indicating whether a value is an array-like object containing 82 only `Symbol` objects. 83 84 Examples 85 -------- 86 > var bool = {{alias}}.objects( [ Object( Symbol( 'beep' ) ) ] ) 87 true 88 > bool = {{alias}}.objects( [ Symbol( 'beep' ) ] ) 89 false 90 > bool = {{alias}}.objects( [] ) 91 false 92 > bool = {{alias}}.objects( {} ) 93 false 94 > bool = {{alias}}.objects( null ) 95 false 96 > bool = {{alias}}.objects( true ) 97 false 98 99 See Also 100 -------- 101