2 * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
3 * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
8 * @param {*} value The value to check.
9 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
15 * _.isObject([1, 2, 3]);
24 function isObject(value) {
25 // Avoid a V8 JIT bug in Chrome 19-20.
26 // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
27 var type = typeof value;
28 return !!value && (type == 'object' || type == 'function');
31 module.exports = isObject;