Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map looping

showDetails(cards, id){
  cards.map(function(card, index){
    if(card.id==id){
      console.log(card);
      return card;
    }
  })
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #map #looping
ADD COMMENT
Topic
Name
4+2 =