Skip to content

Commit 1253d58

Browse files
authored
Merge pull request #409 from corvidism/validators-to-string
Add local alias for `toString`
2 parents 4ff4d29 + 238367e commit 1253d58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/validators.js

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ SOFTWARE.
2828
"use strict";
2929

3030
/* Validation functions copied from check-types package - https://www.npmjs.com/package/check-types */
31+
32+
const toString = Object.prototype.toString;
33+
3134
function isFunction(data) {
3235
return typeof data === "function";
3336
}

0 commit comments

Comments
 (0)