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