(input: unknown): input is nullChecks whether a value is null.
When to use
Use when you need a Predicate guard for nullable values.
Details
Uses input === null.
Example (Guarding null values)
import { Predicate } from "effect"
const data: unknown = null
console.log(Predicate.isNull(data))Source effect/Predicate.ts:8293 lines
export function function isNull(
input: unknown
): input is null
Checks whether a value is null.
When to use
Use when you need a Predicate guard for nullable values.
Details
Uses input === null.
Example (Guarding null values)
import { Predicate } from "effect"
const data: unknown = null
console.log(Predicate.isNull(data))
isNull(input: unknowninput: unknown): input: unknowninput is null {
return input: unknowninput === null
}