mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Remove semicolons.
This commit is contained in:
14
isObject.js
14
isObject.js
@@ -9,21 +9,21 @@
|
||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
||||
* @example
|
||||
*
|
||||
* isObject({});
|
||||
* isObject({})
|
||||
* // => true
|
||||
*
|
||||
* isObject([1, 2, 3]);
|
||||
* isObject([1, 2, 3])
|
||||
* // => true
|
||||
*
|
||||
* isObject(Function);
|
||||
* isObject(Function)
|
||||
* // => true
|
||||
*
|
||||
* isObject(null);
|
||||
* isObject(null)
|
||||
* // => false
|
||||
*/
|
||||
function isObject(value) {
|
||||
const type = typeof value;
|
||||
return value != null && (type == 'object' || type == 'function');
|
||||
const type = typeof value
|
||||
return value != null && (type == 'object' || type == 'function')
|
||||
}
|
||||
|
||||
export default isObject;
|
||||
export default isObject
|
||||
|
||||
Reference in New Issue
Block a user