diff options
Diffstat (limited to 'ext/node/polyfills/util.ts')
| -rw-r--r-- | ext/node/polyfills/util.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/node/polyfills/util.ts b/ext/node/polyfills/util.ts index a77167253..c84131f68 100644 --- a/ext/node/polyfills/util.ts +++ b/ext/node/polyfills/util.ts @@ -109,15 +109,11 @@ export function isFunction(value: unknown): boolean { return typeof value === "function"; } -/** @deprecated Use util.types.RegExp() instead. */ -export function isRegExp(value: unknown): boolean { - return types.isRegExp(value); -} +/** @deprecated Use util.types.isRegExp() instead. */ +export const isRegExp = types.isRegExp; /** @deprecated Use util.types.isDate() instead. */ -export function isDate(value: unknown): boolean { - return types.isDate(value); -} +export const isDate = types.isDate; /** @deprecated - use `value === null || (typeof value !== "object" && typeof value !== "function")` instead. */ export function isPrimitive(value: unknown): boolean { |
