Skip to main content
Module

x/rimbu/base/mod.ts

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

Type Aliases

Matches any type of function

Utility type that will only return true if the input type T is equal to any.

Gives true if the given type T is a function, false otherwise.

Utility type that will only return true if the input type T is a (readonly) array.

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.

A predicate type that resolves to true if the given type satisfies:

  • it is an object type (not a primitive)
  • it is not a function
  • it is not iterable
  • it does not have any properties that are functions Otherwise, it resolves to false

Utility type to exclude any types that are iterable. Useful in cases where plain objects are required as inputs but not arrays.

Utility type that will only accept objects that are considered 'plain objects' according to the IsPlainObj predicate type.