He is interested in what form of writing of the switch functions, from the ones below, is most optimal from the point of view of understanding and readability of the code, and from the point of view of conciseness of writing the code. So to say, what to teach yourself from the very beginning of studying JS. I already got used to writing as in v 2, but I met a version of the record v 4, which seems to be better for understanding. Give advice, please.
/ v 1 const getUsersByEyeColor = (arr, color) => arr.filter(val => val.eyeColor === color); // v 2 const getUsersByEyeColor = (arr, color) => arr.filter( val => val.eyeColor === color ); // v 3 const getUsersByEyeColor = (arr, color) => { return arr.filter(val => val.eyeColor === color); }; // v 4 const getUsersByEyeColor = (arr, color) => { const usersByEyeColor = arr.filter(user => user.eyeColor === color); return usersByEyeColor; }; console.log(getUsersByEyeColor(users, 'blue')); const users = [ { id: '701b29c3-b35d-4cf1-a5f6-8b12b29a5081', name: 'Moore Hensley', email: 'moorehensley@indexia.com', eyeColor: 'blue', phone: '+1 (848) 556-2344', friends: ['Sharron Pace'], isActive: false, balance: 2811, skills: ['ipsum', 'lorem'], gender: 'male', age: 37, }, .... ]