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