travis-ci
4670 of 5656 branches covered (82.57%)
13 of 13 new or added lines in 2 files covered. (100.0%)
10412 of 11525 relevant lines covered (90.34%)
5850.54 hits per line
1 |
module.exports = function notEmpty(o) { |
1 only 2387.2 ✔ |
2 |
if (o == null) { |
|
3 |
return false; |
4 only 2387.2 ✔ |
4 |
} else if (Array.isArray(o)) { |
|
5 |
return !!o.length;
|
12 only 2387.2 ✔ |
6 |
} else if (o === "") { |
|
7 |
return false; |
2 only 2387.2 ✔ |
8 |
} |
|
9 |
|
|
10 |
return true; |
6 only 2387.2 ✔ |
11 |
}; |