As the function indicates, toString() is an instance method, which has accessibilities to the instance property name, sep, cmd, it can format the string directly.
It might be overhead to invoke the static method and do another RegExp verify.
Please correct me if I got it wrong. Thanks !
As the function indicates,
toString()is an instance method, which has accessibilities to the instance propertyname,sep,cmd, it can format the string directly.It might be overhead to invoke the static method and do another RegExp verify.
Please correct me if I got it wrong. Thanks !