mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Remove extraneous conditional (#4531)
Since `function flow(funcs)` changed to `function flow(...funcs)` this ternary became unnecessary, since funcs will always have a length now.
This commit is contained in:
committed by
John-David Dalton
parent
657f8bf71e
commit
a6b960be00
2
flow.js
2
flow.js
@@ -21,7 +21,7 @@
|
|||||||
* // => 9
|
* // => 9
|
||||||
*/
|
*/
|
||||||
function flow(...funcs) {
|
function flow(...funcs) {
|
||||||
const length = funcs ? funcs.length : 0
|
const length = funcs.length
|
||||||
let index = length
|
let index = length
|
||||||
while (index--) {
|
while (index--) {
|
||||||
if (typeof funcs[index] !== 'function') {
|
if (typeof funcs[index] !== 'function') {
|
||||||
|
|||||||
Reference in New Issue
Block a user