isBoolean.js 200 Bytes Raw Blame History Permalink 1 2 3 4 5 6 import { toString } from './_setup.js'; // Is a given value a boolean? export default function isBoolean(obj) { return obj === true || obj === false || toString.call(obj) === '[object Boolean]'; }