Skip to content

Commit 72b4dcc

Browse files
authored
Update index.js
1 parent e5441c3 commit 72b4dcc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ class Strings {
33
this._string = string
44
}
55

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+
*/
611
capitalize(str) {
712
const firstLetter = str[0].toUpperCase()
813
const lastLetters = str.slice(1)
@@ -15,4 +20,4 @@ class Strings {
1520
}
1621
}
1722

18-
module.exports.Strings = Strings;
23+
module.exports.Strings = Strings;

0 commit comments

Comments
 (0)