Cleaned up code for is.empty() function

This commit is contained in:
Kodie Grantham 2017-10-05 11:55:49 -05:00
parent af2ad0c819
commit 788891cd81
3 changed files with 12 additions and 8 deletions

View file

@ -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('🦄'));