mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
made the exports check safe
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
if (typeof module !== 'undefined' && module.exports) {
|
if (typeof module !== 'undefined' && module.exports) {
|
||||||
module.exports = _;
|
module.exports = _;
|
||||||
_._ = _;
|
_._ = _;
|
||||||
} else if (exports !== 'undefined') {
|
} else if (typeof exports !== 'undefined' && exports) {
|
||||||
exports._ = _;
|
exports._ = _;
|
||||||
} else {
|
} else {
|
||||||
// Exported as a string, for Closure Compiler "advanced" mode.
|
// Exported as a string, for Closure Compiler "advanced" mode.
|
||||||
|
|||||||
Reference in New Issue
Block a user