Framework
Version

isNotFound function

The isNotFound function can be used to determine if an object is a NotFoundError object.

isNotFound options

The isNotFound function accepts a single argument, an input.

input option

  • Type: unknown
  • Required
  • An object to check if it is a NotFoundError.

isNotFound returns

Examples

tsx
import { isNotFound } from '@tanstack/react-router'

function somewhere(obj: unknown) {
  if (isNotFound(obj)) {
    // ...
  }
}
import { isNotFound } from '@tanstack/react-router'

function somewhere(obj: unknown) {
  if (isNotFound(obj)) {
    // ...
  }
}
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.