Skip to content

Replacements for core-util-is

Node.js util

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. (4c8e17bf)