Add is.numericString()
This commit is contained in:
parent
c983ffa4cd
commit
b407e383f8
2 changed files with 12 additions and 1 deletions
|
|
@ -426,6 +426,14 @@ test('is.symbol', t => {
|
|||
testType(t, 'symbol');
|
||||
});
|
||||
|
||||
test('is.numericString', t => {
|
||||
t.true(m.numericString('5'));
|
||||
t.true(m.numericString('-3.2'));
|
||||
t.true(m.numericString('Infinity'));
|
||||
t.false(m.numericString(undefined));
|
||||
t.false(m.numericString(null));
|
||||
});
|
||||
|
||||
test('is.array', t => {
|
||||
testType(t, 'array', ['emptyArray']);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue