Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/base/mod.ts>IsObjWithoutFunctions

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias IsObjWithoutFunctions
import { type IsObjWithoutFunctions } from "https://deno.land/x/rimbu@1.0.3/base/mod.ts";

A predicate type for any record that resolves to true if any of the record properties is a function, false otherwise. This is useful to have a coarse discrimination between pure data objects and class instances.

definition: AnyFunc extends T[keyof T] ? false : true