mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
fix(util) check: isEmpty
This commit is contained in:
parent
2bfb7bb04b
commit
bd5ae84ba9
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@
|
|||
lenArgs = args.length,
|
||||
lessArgs = lenArgs < lenNames,
|
||||
emptyIndex = indexOf.call(args),
|
||||
isEmpty = ~emptyIndex;
|
||||
isEmpty = ~emptyIndex && emptyIndex <= lenNames - 1;
|
||||
|
||||
if (lessArgs || isEmpty) {
|
||||
if (lessArgs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue