We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10b68d7 commit 60a6662Copy full SHA for 60a6662
public/data/javascript.json
@@ -231,6 +231,20 @@
231
],
232
"tags": ["string", "case", "camelCase"],
233
"author": "aumirza"
234
+ },
235
+ {
236
+ "title": "Convert String to Title Case",
237
+ "description": "Converts a given string into Title Case.",
238
+ "code": [
239
+ "function toTitleCase(str) {",
240
+ " return str.toLowerCase().replace(/\\b\\w/g, (s) => s.toUpperCase());",
241
+ "}",
242
+ "",
243
+ "// Example usage:",
244
+ "console.log(toTitleCase('hello world test')); // Output: 'Hello World Test'"
245
+ ],
246
+ "tags": ["string", "case", "titleCase"],
247
+ "author": "aumirza"
248
},
249
{
250
"title": "Remove Vowels from a String",
0 commit comments