From f57565d7802e9736212a82831fdcf772a770ac5c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 23 Jun 2022 12:50:11 +0200 Subject: [PATCH] Add top 10 firstname girls and boys worldwide --- src/utils/utils.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index b717c4c..78ea3b5 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -1,5 +1,27 @@ const randomFirstname = () => { - return "Maria"; + const firstnames = [ + "Sarah", + "Emma", + "Laura", + "Chloé", + "Marie", + "Emily", + "Léa", + "Camille", + "Anna", + "Manon", + "Alex", + "Thomas", + "David", + "Daniel", + "Kévin", + "Michael", + "Nicolas", + "James", + "John", + "Lucas" + ] + return firstnames[Math.floor(Math.random() * firstnames.length)]; }; module.exports = {