3 ms·
String (capital "S") class.
by lr4444lr 7y ago
String (capital "S") class.
- nailer 7y agoWhy don't you like Strings? All prototypes (Number, Array etc) have a capital letter.
- zzo38computer 7y agoI think that it is good. These functions for primitives (String, Number, etc) are good, one thing sometimes to call it, and also because of the prototype. Also, there is such thing as String.prototype.constructor and Number.prototype.constructor and so on, which I have used for parsing command-line arguments (to replace the default values with the user values, converted to the correct type).