UNPKG

util-ex

Version:

Browser-friendly enhanced util fully compatible with standard node.js

11 lines (10 loc) 257 B
/** * Determines whether the given argument is a boolean. * * @param {*} arg - The argument to check. * @returns {boolean} Whether the argument is a boolean. */ export function isBool(arg) { return typeof arg === 'boolean'; }; export default isBool;