UNPKG

util-ex

Version:

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

18 lines (17 loc) 399 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; exports.isBool = isBool; /** * Determines whether the given argument is a boolean. * * @param {*} arg - The argument to check. * @returns {boolean} Whether the argument is a boolean. */ function isBool(arg) { return typeof arg === 'boolean'; } ; var _default = exports.default = isBool;