Skip to content

Instantly share code, notes, and snippets.

View ashleytqy's full-sized avatar
🦇
good for the plot

ash ashleytqy

🦇
good for the plot
  • reddit
  • pnw
View GitHub Profile
const memo = {};
const names = ['Alex', 'Charlie', 'Dolores', 'May', 'Alex', 'Claire', 'Dolores', 'Claire'];
for (let i = 0; i < names.length; i++)
{
let name = names[i];
memo[name] = i;
console.log(i, "\n", name, memo);
}