Posts by cardosodiaseduardo2 • 21 points
2 posts
-
0
votes1
answer27
viewsQ: search object from within an array by value of an attribute
I have two arrays, an array has the following format: todasAsCartas:[ { id: 1, 'valor': 2, 'naipe': 'Paus' }, { id: 2, 'valor': 2, 'naipe': 'Copas' }, { id: 3, 'valor': 3, 'naipe': 'Espadas' }, {…
-
2
votes3
answers110
viewsQ: Take an object from within an array and send it to another array?
I need to take an object from within an array and send that same object to another array. See: todasAsCartas:[ { id: 1, valor: 2, naipe: 'Paus' }, { id: 2, valor: 2, naipe: 'Copas' }, { id: 3,…