setup-maven-cached/node_modules/underscore/modules/isBoolean.js

7 lines
200 B
JavaScript
Raw Permalink Normal View History

2022-06-28 16:39:30 +08:00
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]';
}