CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
isBoolean.js30 linesDownload Raw Back to lodash
1var baseGetTag = require('./_baseGetTag'),2    isObjectLike = require('./isObjectLike');3 4/** `Object#toString` result references. */5var boolTag = '[object Boolean]';6 7/**8 * Checks if `value` is classified as a boolean primitive or object.9 *10 * @static11 * @memberOf _12 * @since 0.1.013 * @category Lang14 * @param {*} value The value to check.15 * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.16 * @example17 *18 * _.isBoolean(false);19 * // => true20 *21 * _.isBoolean(null);22 * // => false23 */24function isBoolean(value) {25  return value === true || value === false ||26    (isObjectLike(value) && baseGetTag(value) == boolTag);27}28 29module.exports = isBoolean;30 
basant307/AI_Governance_Project · CoolFace