8000 Remove unused `baseArity`. · lodash/lodash@6e2fb92 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e2fb92

Browse files
committed
Remove unused baseArity.
1 parent 4f702e2 commit 6e2fb92

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

fp/_baseConvert.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line number 8000 Diff line change
@@ -67,12 +67,6 @@ function baseConvert(util, name, func, options) {
6767

6868
var aryMethodKeys = keys(mapping.aryMethod);
6969

70-
var baseArity = function(func, n) {
71-
return n == 2
72-
? function(a, b) { return func.apply(undefined, arguments); }
73-
: function(a) { return func.apply(undefined, arguments); };
74-
};
75-
7670
var baseAry = function(func, n) {
7771
return n == 2
7872
? function(a, b) { return func(a, b); }
@@ -113,7 +107,9 @@ function baseConvert(util, name, func, options) {
113107

114108
var iterateeAry = function(func, n) {
115109
return overArg(func, function(func) {
116-
return typeof func == 'function' ? baseAry(func, n) : func;
110+
return typeof func == 'function'
111+
? baseAry(func, n)
112+
: func;
117113
});
118114
};
119115

0 commit comments

Comments
 (0)
0