Well I have an array like this:
const names = ['Josh', 'Travis', 'Josh', 'Travis', 'Brad', 'Travis', 'Josh'];
And of this array I'd like to build a Javascript Object.
The key of the object should be the name and the value should be the number of same names in the names array.
The result should look like this then:
({"Josh": 3, "Travis": 3, "Brad": 1})
And I would like to do it with reduce