New object key from an object value
/in JavaScript/by Génesis
let person = { name: 'marta' }
let points = { [person.name]: 27 }
Get infected parameters starting from a specific carrier
/in JavaScript/by GénesisImagine one guy got infected by a virus and you want to detect potential infections by direct contact. We have an array that represents the city where he lives and subarrays that represent the houses where he went. We are gonna use numbers (people identification) for our example.
Updated version using Set properly thanks to japanfever