Add matches to core build. [closes #1784]

This commit is contained in:
John-David Dalton
2016-01-13 22:41:48 -08:00
parent 7544166d11
commit ace771d4e9
3 changed files with 71 additions and 27 deletions

View File

@@ -41,7 +41,24 @@
return function(_) {
lodash.defaultsDeep(_, { 'templateSettings': lodash.templateSettings });
lodash.mixin(_, lodash.pick(lodash, lodash.difference(lodash.functions(lodash), lodash.functions(_))));
lodash.mixin(_, lodash.pick(lodash, [
'countBy',
'debounce',
'difference',
'find',
'findIndex',
'findLastIndex',
'groupBy',
'includes',
'invert',
'keyBy',
'omit',
'partition',
'reduceRight',
'reject',
'sample',
'without'
]));
lodash.forOwn(keyMap, function(realName, otherName) {
_[otherName] = lodash[realName];