Mutil/types
Bun

Node.js module

util/types

The 'node:util/types' submodule provides type-checking utility functions for Node.js internal and user objects. It includes checks like isRegExp, isDate, isBuffer, and many others.

Use these functions to identify built-in object types accurately in userland code.