mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57: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`.
|
* @returns {null|Object} Returns `value` if it's a global object, else `null`.
|
||||||
*/
|
*/
|
||||||
function checkGlobal(value) {
|
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