7fife-backend/node_modules/underscore/cjs/isBoolean.js

9 lines
218 B
JavaScript

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