Add is.fortyTwo

This commit is contained in:
Sindre Sorhus 2022-01-28 01:21:07 +07:00
parent c3d12667fd
commit 99153d79db
3 changed files with 11 additions and 0 deletions

View file

@ -1507,6 +1507,11 @@ test('is.nonEmptyMap', t => {
});
});
test('is.fortyTwo', t => {
t.true(is.fortyTwo(42));
t.false(is.fortyTwo(43));
});
test('is.propertyKey', t => {
t.true(is.propertyKey('key'));
t.true(is.propertyKey(42));