Skip to main content

Variable: isUndefined

const isUndefined: TypePredicate<unknown, undefined>

Defined in: predicate/guards/index.ts:180

Type guard that checks if a value is undefined.

Param

The value to check

Returns

True if value is undefined

Example

import * as R from 'remeda'
import { isUndefined } from 'receta/predicate'

const values: unknown[] = [null, undefined, 0, '']
R.filter(values, isUndefined) // => [undefined]

See

  • isNull - for null check
  • isNullish - for null or undefined check
  • isDefined - for non-nullish check