aboutsummaryrefslogtreecommitdiff
path: root/src/locales/th
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-10-08 16:58:10 +0200
committerGitHub <[email protected]>2023-10-08 14:58:10 +0000
commiteaf714dd8af5d86b2fb5aac031693a6aa51b83d8 (patch)
treed2eb9176c9d8c8d5b6c91eedb68de0970dfced29 /src/locales/th
parentf1b44894edf2de88133ed40ac014499884ede7ba (diff)
downloadfaker-eaf714dd8af5d86b2fb5aac031693a6aa51b83d8.tar.xz
faker-eaf714dd8af5d86b2fb5aac031693a6aa51b83d8.zip
infra(unicorn): prefer-array-flat-map (#2446)
Diffstat (limited to 'src/locales/th')
-rw-r--r--src/locales/th/person/last_name.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/locales/th/person/last_name.ts b/src/locales/th/person/last_name.ts
index ecae422a..7dcead83 100644
--- a/src/locales/th/person/last_name.ts
+++ b/src/locales/th/person/last_name.ts
@@ -21,9 +21,9 @@ const common_isan_suffix = [
'พิมาย',
'นอก',
];
-const isan_complete = common_isan_prefix
- .map((prefix) => common_isan_suffix.map((suffix) => `${prefix}${suffix}`))
- .flat();
+const isan_complete = common_isan_prefix.flatMap((prefix) =>
+ common_isan_suffix.map((suffix) => `${prefix}${suffix}`)
+);
// https://www.thairath.co.th/lifestyle/culture/2030525
const chinese = [