Pregunta de entrevista de Infosys

Difference between map and map object

Respuesta de la entrevista

Anónimo

7 de nov de 2024

map is a function which operates on array and it iterates on each element in the array and applies transformation with output as array. mapobject is a function used to iterate on key value pairs in the object and do tranformations with output as object