mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Remove unneeded n validation from _.before.
This commit is contained in:
@@ -5494,7 +5494,6 @@
|
|||||||
if (!isFunction(func)) {
|
if (!isFunction(func)) {
|
||||||
throw new TypeError(funcErrorText);
|
throw new TypeError(funcErrorText);
|
||||||
}
|
}
|
||||||
n = nativeIsFinite(n = +n) ? n : 0;
|
|
||||||
return function() {
|
return function() {
|
||||||
if (--n > 0) {
|
if (--n > 0) {
|
||||||
result = func.apply(this, arguments);
|
result = func.apply(this, arguments);
|
||||||
|
|||||||
Reference in New Issue
Block a user