Skip to content

Instantly share code, notes, and snippets.

Last active Jul 11, 2020
What would you like to do?
JavaScript map method
// JS: map() method
let clientes = [
{nombre: "Luis", edad: 22},
{nombre: "Alberto", edad: 31},
{nombre: "Eduardo", edad: 19}
let foo = {
return cliente.nombre;
let bar = => cliente.nombre);
// ["Luis","Alberto","Eduardo"]
// ["Luis","Alberto","Eduardo"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment