repo
replacements.fyi

// package

is-obj

type: "module"

// preferences

// replacements (1)

snippet::is-object-or-function

Simple or drop-in replacement

This package is no longer necessary. You can use `typeof` to check if a value is an object or a function.

// example

const isObjectOrFunction = (v) =>
	v !== null &&
	(typeof v === 'object' ||
		typeof v === 'function');