is_boolean


is_boolean(obj)
      

Return true if obj evaluates to the constant true or false values.

Examples:


is_boolean(1 < 2)
// true
is_boolean(1 > 2)
// true               
is_boolean(1)
// false
      

Also see:

is_true
is_false


Core Module Index | Contents