Commit graph

77 commits

Author SHA1 Message Date
Ivan Katliarchuk
23cf074a73
Add .nonEmptyStringAndNotWhitespace() (#161)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-02-25 16:10:57 +07:00
Zane Shannon
63d75d68ee
Add type guard for is.truthy and is.falsy (#151) 2022-01-25 17:28:33 +07:00
Olivier Beaulieu
a5b4017d5e
Add is.enumCase and assert.enumCase (#150)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-01-17 12:55:40 +07:00
Stuart Dotson
ad661ebcee
Fix is.iterable and is.asyncIterable TypeScript types (#149) 2022-01-07 21:32:06 +07:00
Kayson Wu
a8de3d6f34
Add is.formData and is.urlSearchParams (#139) 2021-09-13 21:25:44 +07:00
PopGoesTheWza
d2f98e472d
Add is.propertyKey (#138)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Giora Guttsait <giora111@gmail.com>
2021-09-10 15:26:13 +07:00
Sindre Sorhus
6f2b24d822 Minor tweaks 2021-09-07 11:45:58 +07:00
Dave Cohen
b748ab72b6
Fix assertion message for .all and .any (#132) 2021-04-22 16:00:08 +07:00
Sindre Sorhus
4f8b01f2dc Rename master branch to main 2021-01-24 14:20:06 +07:00
Rocktim Saikia
94749dbb2e
Improve is.plainObject TypeScript type (#126) 2020-10-13 00:00:52 +02:00
Arnovsky
d8ced89efe
Fix using is.array in is.all (#125) 2020-08-22 00:18:34 +02:00
Arnovsky
3f93bf200d
Add is.array overload that supports asserting array items (#119)
Co-authored-by: Pedro Augusto de Paula Barbosa <papb1996@gmail.com>
Co-authored-by: Giora Guttsait <giora111@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-07-25 09:11:59 +02:00
Richie Bendall
e31db97eab
Extract necessary functions from type-fest (#120) 2020-07-20 07:48:08 +08:00
Bjorn Stromberg
71ca1e5573
Make the is() function type-safe (#117) 2020-06-28 04:20:36 +08:00
Bjorn Stromberg
1ffe2fb6a7
Use string literals instead of enums (#113) 2020-06-20 15:28:47 +08:00
Arfat Salman
402fbb5a7e
Fix #109: is.numericString behaves correctly on whitespaces (#110) 2020-04-17 17:55:02 -04:00
Sindre Sorhus
05cdaccf92 Update TypeScript 2020-02-22 02:17:02 +07:00
Dave Cohen
d1929ad47c
Add support for multiple predicates to is.any (#104) 2020-02-16 20:06:19 -05:00
Forresst
446a7a081e
Add .asyncGenerator and .asyncGeneratorFunction detection (#100) 2020-01-30 00:35:58 +07:00
Joel Purra
d28c86ee27
Propagate generic types where possible (#103) 2020-01-29 23:22:35 +07:00
Sindre Sorhus
11003b925e Meta tweaks 2020-01-22 19:17:43 +07:00
Joel Purra
0c3f110386 Add assertion type guards (#97) 2020-01-22 18:08:35 +07:00
Joel Purra
c842cc260f Upgrade dependencies (#101) 2020-01-21 23:56:44 +07:00
Sindre Sorhus
aeb3f74d65 Make the NodeStream type more accurate 2019-11-13 16:06:18 +07:00
Sindre Sorhus
c25b606c3b Improve the type assertion for is.asyncFunction 2019-11-07 16:37:36 +07:00
Sindre Sorhus
af6b03d67f Require Node.js 10 2019-11-07 15:58:29 +07:00
Sindre Sorhus
3f2caa4835 Revert "Bundle the required DOM types (#93)"
This reverts commit 7c16f20d16.
2019-10-04 11:38:10 +07:00
Sindre Sorhus
7c16f20d16
Bundle the required DOM types (#93)
Closes #92
2019-10-02 23:06:53 +07:00
Sindre Sorhus
0cbd9df6ce Minor refactoring 2019-07-01 23:19:25 +07:00
Sindre Sorhus
4f4820ef2f Meta tweaks 2019-06-30 15:18:24 +07:00
Kai Niedziela
f04dffa575 Make is.number(NaN) return false (#90)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2019-06-30 15:09:07 +07:00
Sindre Sorhus
ffc6ce4586 Fix linting 2019-06-15 02:12:31 +07:00
Sindre Sorhus
6106086a35 Revert "Drop duplicate export (#84)"
This reverts commit 28913cae88.

Closes #89
Fixes #88
2019-05-21 16:45:07 +07:00
Sindre Sorhus
04cd282265 Fix the capitalization of is.bigInt64Array and is.bigUint64Array 2019-05-13 11:04:48 +07:00
Vlad Frangu
dd2a91dce5 Add support for BigInt (#87) 2019-05-04 16:05:23 +07:00
Adam Babcock
373605e40d Test coverage for is(value) (#86) 2019-04-28 15:15:11 +07:00
Sindre Sorhus
120f74ab63 Require Node.js 8 2019-04-01 04:02:25 +07:00
Sindre Sorhus
ea4204f0b4 Switch to XO for linting 2019-03-31 21:34:47 +07:00
Federico Brigante
28913cae88 Drop duplicate export (#84) 2019-03-14 16:32:19 +07:00
Sindre Sorhus
2f5e03bed2 Minor tweaks 2019-02-04 02:54:30 +07:00
Sindre Sorhus
9683cd7fd9 Run TS as a require hook for tests instead of precompile 2019-02-04 02:38:38 +07:00
Sindre Sorhus
3c847be5a0 Improve the TypeScript types (#80) 2019-02-04 02:38:38 +07:00
Scottie Enriquez
2502442404 Rename .odd() to .oddInteger() and .even() to .evenInteger() for clarity (#77) 2019-02-04 02:38:38 +07:00
Sindre Sorhus
641d856b36
Stop using TypeScript namespace (#78) 2019-02-02 01:14:08 +07:00
Sindre Sorhus
ab586df0f9 Fix lint issue 2019-01-12 12:14:45 +07:00
Sindre Sorhus
42fd8d3574 Use the URL global when available 2018-12-13 16:57:06 +01:00
Sindre Sorhus
844b43c9df
Improve the is.observable check (#74)
Fixes #72
2018-12-13 16:52:55 +01:00
Itai Steinherz
566f363632 Add is.urlString (#73) 2018-12-13 16:52:21 +01:00
Sindre Sorhus
2ee148f5a1 Meta tweaks 2018-12-13 00:58:02 +01:00
Sindre Sorhus
9df6f4ebe9 Bump TypeScript version 2018-11-30 15:14:41 +07:00