CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
isObjectLike.js30 linesDownload Raw Back to lodash
1/**2 * Checks if `value` is object-like. A value is object-like if it's not `null`3 * and has a `typeof` result of "object".4 *5 * @static6 * @memberOf _7 * @since 4.0.08 * @category Lang9 * @param {*} value The value to check.10 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.11 * @example12 *13 * _.isObjectLike({});14 * // => true15 *16 * _.isObjectLike([1, 2, 3]);17 * // => true18 *19 * _.isObjectLike(_.noop);20 * // => false21 *22 * _.isObjectLike(null);23 * // => false24 */25function isObjectLike(value) {26  return value != null && typeof value == 'object';27}28 29module.exports = isObjectLike;30 
basant307/AI_Governance_Project · CoolFace