isBoolean.js 218 B

123456789
  1. var _setup = require('./_setup.js');
  2. // Is a given value a boolean?
  3. function isBoolean(obj) {
  4. return obj === true || obj === false || _setup.toString.call(obj) === '[object Boolean]';
  5. }
  6. module.exports = isBoolean;