validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

Although `toString` method is exposed from the library, it's not referring the actual implementation.

Open NithishG opened this issue 4 years ago • 1 comments

  • Either we need to import the toString from lib/util/toString so that the exported method will refer to the actual implementation.
  • Or we need to remove toString export from the lib altogether.

The reason behind is as toString is exposed, so when we call validator.toString("test") it's resulting [object Object].

NithishG avatar Nov 17 '21 03:11 NithishG

Please, expose its implementation.

gbcreation avatar Dec 13 '21 10:12 gbcreation