We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5441c3 commit 72b4dccCopy full SHA for 72b4dcc
src/index.js
@@ -3,6 +3,11 @@ class Strings {
3
this._string = string
4
}
5
6
+ /**
7
+ * Returns a string with the first letter capitalized
8
+ * @param {Strings} str - Local variable used to slice and capitalize the first letter
9
+ * @returns {Date} - string with the first letter capitalized
10
+ */
11
capitalize(str) {
12
const firstLetter = str[0].toUpperCase()
13
const lastLetters = str.slice(1)
@@ -15,4 +20,4 @@ class Strings {
15
20
16
21
17
22
18
-module.exports.Strings = Strings;
23
+module.exports.Strings = Strings;
0 commit comments