This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function idBestUsers(...months) { | |
// Get user Ids present in all months | |
const firstMonth = months[0]; | |
const filteredUsers = firstMonth.filter(userId => { | |
return months.every(month => month.includes(userId)); | |
}); | |
const userCount = {}; // Stores userId instance counts as key value pair | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const positions = { | |
Aman: { | |
latitude: 0, | |
longitude: 0, | |
}, | |
R1: { | |
latitude: 0, | |
longitude: 0, | |
}, | |
R2: { |
OlderNewer