isBoolean source npm

_.isBoolean(value)

Checks if value is classified as a boolean primitive or object.

Arguments

  1. value (*)

    The value to check.

Returns (boolean)

Returns true if value is correctly classified, else false.

Example

_.isBoolean(false);
// => true

_.isBoolean(null);
// => false