validator.js
validator.js copied to clipboard
Although `toString` method is exposed from the library, it's not referring the actual implementation.
- Either we need to import the
toStringfromlib/util/toStringso that the exported method will refer to the actual implementation. - Or we need to remove
toStringexport from the lib altogether.
The reason behind is as toString is exposed, so when we call validator.toString("test") it's resulting [object Object].
Please, expose its implementation.