javascript map synchronous code example
Example: js is map async
let obj = {
one: 1,
two: 2,
three: 3
}
obj.map((element, index) => {
// do something
// return result
});
/*
map() is a higher order function (a function that takes another
function as a parameter) and as such is synchronous
*/