
03/08/2016, 16:37
|
 | | | Fecha de Ingreso: enero-2010 Ubicación: Mexico DF
Mensajes: 150
Antigüedad: 15 años, 2 meses Puntos: 9 | |
Merge de dos arreglos y eliminar duplicados Hola, tengo dos arreglos en javascript . . .
En el arreglo A tengo lo siguiente . . .
["T7DEZ7DqeXNUPsDK5wgR16D6VRW2",
"UfLTJBCHTjYehe3ODhb5Qn0b1Xh2",
"WfVWeVm0DEYlznAhFuJIgPaywhG3",
"i5K2EFOjPIRk5ChMcZHw8vwncVk1",
"s8gSaK4jffh8RGtcgYx7QvqmCl42",
"zMbQOvMVxeOZpgu6cFb0y9wWkFe2"]
Y en el arreglo B tengo:
["WfVWeVm0DEYlznAhFuJIgPaywhG3","WfVWeVm0DEYlznAhFu JIgPaywhG3"]
QUIERO ELIMINAR LOS ELEMENTOS QUE SON IGUALES Y GENERAR UN ARREGLO C DONDE LOS ELEMENTOS QUE FUERON ELIMINADOS NO SE MUESTREN. . .
INTENTÉ CON .CONCAT Y UNIQUE DE JQUERY PERO ESO SÓLO BUSCA LOS ELEMENTOS Y SÍ SON IGUALES HACE UN MERGE Y AÚN ASÍ SIGUEN ESTANDO LOS ELEMENTOS DEL ARREGLO B. . .
__________________ No por que a mi nadie me ayudo a aprender a programar yo no les voy a ayudar ... Comunicación Web
Última edición por netovs; 03/08/2016 a las 17:20
Razón: Agregar el lenguaje javascript
|