Skip to content

Commit

Permalink
Merge pull request #409 from corvidism/validators-to-string
Browse files Browse the repository at this point in the history
Add local alias for `toString`
  • Loading branch information
colincasey authored Apr 26, 2024
2 parents 4ff4d29 + 238367e commit 1253d58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 1253d58

Please # to comment.