isBoolean.js 227 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 define(['./_setup'], function (_setup) { // Is a given value a boolean? function isBoolean(obj) { return obj === true || obj === false || _setup.toString.call(obj) === '[object Boolean]'; } return isBoolean; });