mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Add lodash.prototype methods that return non-wrapped values.
Former-commit-id: b7ecb8c91ec9647827a80a297b966639c6580ef0
This commit is contained in:
5
build.js
5
build.js
@@ -124,7 +124,7 @@
|
||||
'memoize': [],
|
||||
'merge': ['forOwn', 'isArray', 'isPlainObject'],
|
||||
'min': ['forEach', 'isArray', 'isString'],
|
||||
'mixin': ['forEach', 'functions'],
|
||||
'mixin': ['filter', 'forEach', 'functions'],
|
||||
'noConflict': [],
|
||||
'object': [],
|
||||
'omit': ['forIn', 'indexOf'],
|
||||
@@ -1397,6 +1397,9 @@
|
||||
});
|
||||
});
|
||||
|
||||
// remove Lo-Dash specific `lodash.prototype` extensions
|
||||
source = source.replace(/(?:\s*\/\/.*)*\n( *)forEach\(filter[\s\S]+?lodash\.[\s\S]+?\n\1}.+/, '');
|
||||
|
||||
// remove unneeded template related variables
|
||||
source = removeVar(source, 'reComplexDelimiter');
|
||||
source = removeVar(source, 'reEmptyStringLeading');
|
||||
|
||||
Reference in New Issue
Block a user