CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
isObject.js32 linesDownload Raw Back to lodash-es
1/**2 * Checks if `value` is the3 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)4 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)5 *6 * @static7 * @memberOf _8 * @since 0.1.09 * @category Lang10 * @param {*} value The value to check.11 * @returns {boolean} Returns `true` if `value` is an object, else `false`.12 * @example13 *14 * _.isObject({});15 * // => true16 *17 * _.isObject([1, 2, 3]);18 * // => true19 *20 * _.isObject(_.noop);21 * // => true22 *23 * _.isObject(null);24 * // => false25 */26function isObject(value) {27  var type = typeof value;28  return value != null && (type == 'object' || type == 'function');29}30 31export default isObject;32 
basant307/AI_Governance_Project · CoolFace