Simplify checkGlobal.

This commit is contained in:
John-David Dalton
2015-07-10 22:43:43 -07:00
parent 64b9402e12
commit 2e91cf727a

View File

@@ -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;
}
/**