UNPKG

@yookue/ts-lang-utils

Version:

Common lang utilities for typescript

4 lines 225 B
import _typeof from "@babel/runtime/helpers/esm/typeof"; export function isRegular(object) { return object instanceof RegExp || _typeof(object) === 'object' && Object.prototype.toString.call(object) === '[object RegExp]'; }