Package: effect
Module: Predicate
Checks whether a value is an object in the JavaScript sense (objects, arrays, functions).
When to use
Use when you need a Predicate guard that accepts arrays and functions as
well as objects.
Details
Returns true for arrays and functions, and false for null.
Example (Checking object keywords)
import { Predicate } from "effect"
console.log(Predicate.isObjectKeyword(() => 1))
console.log(Predicate.isObjectKeyword(null))
See
isObjectisObjectOrArraySignature
declare const isObjectKeyword: (input: unknown) => input is object
Since v4.0.0