Skip to content

Instantly share code, notes, and snippets.

View ravikp7's full-sized avatar
🎯
Busy in getting busier

Ravi Kumar Prasad ravikp7

🎯
Busy in getting busier
View GitHub Profile
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
const positions = {
Aman: {
latitude: 0,
longitude: 0,
},
R1: {
latitude: 0,
longitude: 0,
},
R2: {