kingW3
0
Q:

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
*/
0

New to Communities?

Join the community