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 e52ad1b commit 61a6306Copy full SHA for 61a6306
bjs/10_function_object/personGenerator.js
@@ -135,8 +135,7 @@ const personGenerator = {
135
136
randomFirstName: function() {
137
138
- if (this.person.gender === this.GENDER_MALE)
139
-
+ if (this.person.gender === this.GENDER_MALE)
140
{
141
return this.randomValue(this.firstNameMaleJson);
142
}
@@ -164,6 +163,18 @@ const personGenerator = {
164
163
165
let result = String(this.randomValue(this.firstNameMaleJson));
166
+ if (result == "Никита")
167
+ {
168
+ result = "Никитич";
169
+
170
+ if (this.person.gender === this.GENDER_FEMALE)
171
172
+ result = result + "на";
173
+ }
174
175
+ return result;
176
177
178
switch (result[result.length - 1]) {
179
case "й":
180
result = result.substring(0, result.length - 1) + "ев"
0 commit comments