repl.txt (660B)
1 2 {{alias}}( value ) 3 Tests if a value is a value which translates to `false` when evaluated in a 4 boolean context. 5 6 Parameters 7 ---------- 8 value: any 9 Value to test. 10 11 Returns 12 ------- 13 bool: boolean 14 Boolean indicating whether a value is falsy. 15 16 Examples 17 -------- 18 > var bool = {{alias}}( false ) 19 true 20 > bool = {{alias}}( '' ) 21 true 22 > bool = {{alias}}( 0 ) 23 true 24 > bool = {{alias}}( null ) 25 true 26 > bool = {{alias}}( void 0 ) 27 true 28 > bool = {{alias}}( NaN ) 29 true 30 > bool = {{alias}}( {} ) 31 false 32 > bool = {{alias}}( [] ) 33 false 34 35 See Also 36 -------- 37