JS Methods

Data

An Array of Objects:

const inventors = [ {first: 'Albert', last: 'Einstein', year: 1879, passed: 1955}, {first: 'Isaac', last: 'Newton', year: 1643, passed: 1727}, {first: 'Galileo', last: 'Galilei', year: 1564, passed: 1642}, {first: 'Marie', last: 'Curie', year: 1867, passed: 1934}, {first: 'Johannes', last: 'Kepler', year: 1571, passed: 1630}, {first: 'Nicolaus', last: 'Copernicus', year: 1473, passed: 1543}, {first: 'Max', last: 'Planck', year: 1858, passed: 1947} ];
and a second array (people's names and surnames):
const people = ['Beck, Glenn', 'John, Zuman', 'Linda, Seem', "Lukas, Ronan", 'Mark, Reihard', 'Orlando, Mon', 'Vanessa, Godi', 'Maria, Ruber', 'Robert, Genn', 'Kristof, Tart', 'Karl, Romer', 'Stephan, Gorn', 'Luisa, Bona', 'Andy, Stork', 'Victoria, Munker'];

Here are provided examples of array methods: Map, Filter, Sort and Reduce:

(also you can check the same results in browser's Console (Ctrl+Shift+I)