@sindresorhus/is
8.1.0 · 11 May 2026MIT93.8M / weekRepositoryHomepagenpmAtom feed
63 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 8.x · latest line
8.0.0
9 Apr 2026- breaking
Require Node.js 22 faf7003
Add
finiteNumberpredicate 63be5c0Add
nonNegativeNumberpredicate 63be5c0
Breaking
- breaking
Require Node.js 22 faf7003
New
Add
finiteNumberpredicate 63be5c0Add
nonNegativeNumberpredicate 63be5c0Add
positiveIntegerpredicate 63be5c0Add
negativeIntegerpredicate 54fc094Add
nonNegativeIntegerpredicate 54fc094Add
arrayOfpredicate factory 54fc094Returns a type guard that checks if every item in an array matches the predicate. Useful for composing with other methods.
Add
oneOfpredicate factory 54fc094Returns a type guard that checks if a value is one of the given values. Best used with
as constfor precise type narrowing.
Fixes
Fix
isEmptyObjectandisNonEmptyObjectincorrectly accepting functions and arrays 3b40955Fix
isNumericStringincorrectly accepting strings with surrounding whitespace 47415dcFix
isInRangesilently returningfalsewhen range containsNaN(now throws) ac46b54Fix
isEnumCaseincorrectly accepting numeric enum key names cb4ee0eFix numeric type guards (
isInteger,isEvenInteger,isOddInteger,isSafeInteger,isPositiveNumber,isNegativeNumber,isInfinite,isNan,isValidLength) narrowing the false branch tonever13febb6These now use branded types so that
if (!is.integer(n)) { ... }keepsnasnumberinstead ofnever
- 7.x
7.2.0
27 Dec 2025Reading the note…
7.1.1
31 Oct 2025Reading the note…
7.1.0
13 Sep 2025Reading the note…
7.0.2
4 Jun 2025Reading the note…
7.0.1
6 Sep 2024Reading the note…
7.0.0
10 Jul 2024Reading the note…
- 6.x
6.3.1
16 May 2024Reading the note…
6.3.0
23 Apr 2024Reading the note…
6.2.0
29 Feb 2024Reading the note…
6.1.0
26 Oct 2023Reading the note…
6.0.1
15 Oct 2023Reading the note…
6.0.0
15 Aug 2023Reading the note…
- 5.x
5.6.0
23 Jul 2023Reading the note…
5.5.2
17 Jul 2023Reading the note…
5.5.1
16 Jul 2023Reading the note…
5.5.0
14 Jul 2023Reading the note…
5.4.1
4 Jun 2023Reading the note…
5.4.0
30 May 2023Reading the note…
5.3.0
21 Jul 2022Reading the note…
5.2.0
21 Jun 2022Reading the note…
5.1.0
13 Jun 2022Reading the note…
5.0.1
11 Jun 2022Reading the note…
5.0.0
11 Jun 2022Reading the note…
- 4.x
4.6.0
27 Feb 2022Reading the note…
4.5.0
25 Feb 2022Reading the note…
4.4.0
25 Jan 2022Reading the note…
4.3.0
17 Jan 2022Reading the note…
4.2.1
7 Jan 2022Reading the note…
4.2.0
13 Sep 2021Reading the note…
4.1.0
10 Sep 2021Reading the note…
4.0.1
22 Apr 2021Reading the note…
4.0.0
12 Oct 2020Reading the note…
- 3.x
3.1.2
21 Aug 2020Reading the note…
3.1.1
16 Aug 2020Reading the note…
3.1.0
25 Jul 2020Reading the note…
3.0.0
27 Jun 2020Reading the note…
- 2.x
2.1.1
19 Apr 2020Reading the note…
2.1.0
17 Feb 2020Reading the note…
2.0.0
29 Jan 2020Reading the note…
- 1.x
1.2.0
4 Oct 2019Reading the note…
1.1.0
3 Oct 2019Reading the note…
1.0.0
30 Jun 2019Reading the note…
- 0.17.x
0.17.1
21 May 2019Reading the note…
0.17.0
13 May 2019Reading the note…
- 0.16.x
0.16.0
4 May 2019Reading the note…
- 0.15.x
0.15.0
3 Feb 2019Reading the note…
- 0.14.x
0.14.0
13 Dec 2018Reading the note…
- 0.13.x
0.13.0
2 Nov 2018Reading the note…