mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Bump to v4.0.0.
This commit is contained in:
15
internal/checkGlobal.js
Normal file
15
internal/checkGlobal.js
Normal file
@@ -0,0 +1,15 @@
|
||||
define([], function() {
|
||||
|
||||
/**
|
||||
* Checks if `value` is a global object.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to check.
|
||||
* @returns {null|Object} Returns `value` if it's a global object, else `null`.
|
||||
*/
|
||||
function checkGlobal(value) {
|
||||
return (value && value.Object === Object) ? value : null;
|
||||
}
|
||||
|
||||
return checkGlobal;
|
||||
});
|
||||
Reference in New Issue
Block a user