Cleaned up code for is.empty() function
This commit is contained in:
parent
af2ad0c819
commit
788891cd81
3 changed files with 12 additions and 8 deletions
6
test.js
6
test.js
|
|
@ -375,6 +375,12 @@ test('is.infinite', t => {
|
|||
});
|
||||
|
||||
test('is.empty', t => {
|
||||
t.true(m.empty(null));
|
||||
t.true(m.empty(undefined));
|
||||
|
||||
t.true(m.empty(false));
|
||||
t.false(m.empty(true));
|
||||
|
||||
t.true(m.empty(''));
|
||||
t.false(m.empty('🦄'));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue