From 238367e2f1d8a2c72cc25cc80a6eeecb612983d6 Mon Sep 17 00:00:00 2001 From: Corvidism Date: Mon, 15 Apr 2024 15:34:54 +0200 Subject: [PATCH] Add local alias for `toString` --- lib/validators.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/validators.js b/lib/validators.js index 85581641..00dc943a 100644 --- a/lib/validators.js +++ b/lib/validators.js @@ -28,6 +28,9 @@ SOFTWARE. "use strict"; /* Validation functions copied from check-types package - https://www.npmjs.com/package/check-types */ + +const toString = Object.prototype.toString; + function isFunction(data) { return typeof data === "function"; }