@sindresorhus/is
8.1.0 · 11 May 2026MIT96.7M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 63 releases- 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 · maintenance
Dependency tracking · free for 3 projects
Know when your own dependencies move
@sindresorhus/is shipped a new major in the last 12 months, among 3 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 9 Nov 2026. Releases and advisories last read 9 Nov 2026.