mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Simplify checkGlobal.
This commit is contained in:
@@ -429,7 +429,7 @@
|
||||
* @returns {null|Object} Returns `value` if it's a global object, else `null`.
|
||||
*/
|
||||
function checkGlobal(value) {
|
||||
return (objectTypes[typeof value] && value && value.Object) ? value : null;
|
||||
return (value && value.Object) ? value : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user