repo
replacements.fyi

// package

kind-of

type: "module"

// preferences

// replacements (1)

snippet::typeof

Simple or drop-in replacement

This package is no longer necessary. You can use `typeof` to get the type of a value, or `Object.prototype.toString.call` to get the internal [[Class]] of an object.

// example

const typeOf = (value) => typeof value;
// for more specific types
const classOf = (value) =>
	Object.prototype.toString.call(value);