mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Simplify module assignment.
This commit is contained in:
@@ -692,10 +692,8 @@
|
|||||||
'_ListCache',
|
'_ListCache',
|
||||||
'_MapCache',
|
'_MapCache',
|
||||||
'_Stack'
|
'_Stack'
|
||||||
], function(relPath) {
|
], function(funcName) {
|
||||||
var func = require(path.join(basePath, relPath)),
|
var func = require(path.join(basePath, funcName));
|
||||||
funcName = path.basename(relPath);
|
|
||||||
|
|
||||||
_['_' + funcName] = func[funcName] || func['default'] || func;
|
_['_' + funcName] = func[funcName] || func['default'] || func;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user