isBoolean.js 227 B

12345678910
  1. define(['./_setup'], function (_setup) {
  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. return isBoolean;
  7. });