Add _.curry.

Former-commit-id: 33282039186323ad4f58d7d7ec19e3c3974dc9b3
This commit is contained in:
John-David Dalton
2013-08-08 22:11:03 -07:00
parent 7371f8927c
commit 8a524dd98f
5 changed files with 221 additions and 103 deletions

View File

@@ -120,6 +120,7 @@
'contains': ['baseEach', 'getIndexOf', 'isString'],
'countBy': ['createAggregator'],
'createCallback': ['baseCreateCallback', 'baseIsEqual', 'isObject', 'keys'],
'curry': ['createBound'],
'debounce': ['isObject'],
'defaults': ['createIterator'],
'defer': ['bind'],
@@ -390,6 +391,7 @@
'bindKey',
'createCallback',
'compose',
'curry',
'debounce',
'defer',
'delay',
@@ -560,6 +562,7 @@
'bindKey',
'cloneDeep',
'createCallback',
'curry',
'findIndex',
'findKey',
'findLast',
@@ -3867,7 +3870,7 @@
if (!isLodash('range')) {
source = source.replace(matchFunction(source, 'range'), function(match) {
return match
.replace(/typeof *step[^:]+:/, '+step ||')
.replace(/typeof *step[^:]+:/, '')
.replace(/\(step.*\|\|.+?\)/, 'step')
});
}