-
-
Save parzibyte/d413047e4645c7984653a30e64480a4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const combinarObjetos = (objeto1, objeto2) => { | |
const resultado = {}; | |
for (const clave of Object.keys(objeto1)) { | |
resultado[clave] = objeto1[clave]; | |
} | |
for (const clave of Object.keys(objeto2)) { | |
resultado[clave] = objeto2[clave]; | |
} | |
return resultado; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment