vendredi 27 janvier 2017

compare two arrays reactjs

I have this code: in reactjs http://ift.tt/2kbzkxY

1- list an array, when mapping I send each item a checkbox
2- I have another array that I still do not have
3- I need to compare the two arrays and if there is an element of both arrays 

equal the checkbox that is repeated in list is active example Array1 [1,2,3] Array2 [2] The checkbox "2" appears cheked




Aucun commentaire:

Enregistrer un commentaire