Skip to content

Replacements for core-util-is

util.types (native, Node.js)

util.types is an official, cross‑realm type checks for built-in objects (Date, RegExp, Error, typed arrays, etc.)

Example:

ts
import * as cui from 'core-util-is'
import { types } from 'node:util'

const isDate = cui.isDate(value) 
const isDate = types.isDate(value) 

Released under the MIT License. (ffa30c16)