diff options
| author | ST-DDT <[email protected]> | 2023-10-08 16:58:10 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-08 14:58:10 +0000 |
| commit | eaf714dd8af5d86b2fb5aac031693a6aa51b83d8 (patch) | |
| tree | d2eb9176c9d8c8d5b6c91eedb68de0970dfced29 /src/locales/th | |
| parent | f1b44894edf2de88133ed40ac014499884ede7ba (diff) | |
| download | faker-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.ts | 6 |
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 = [ |
