2020年12月20日星期日

How to map through an array that contains hashmaps and find a matching key value pair

I have an array

yolo = [   {id: 1, description: "yaya", count: "27"},  {id: 2, description: "it is", count: "27"},  {id: 3, description: "it ", count: "27"}  ]  

How do I return true when there is the same key value pair within the different hashes in the array. So in this instance I want this to return true because the count key value pair is the same in the multiple hashes. Thank you!

https://stackoverflow.com/questions/65386651/how-to-map-through-an-array-that-contains-hashmaps-and-find-a-matching-key-value December 21, 2020 at 09:56AM

没有评论:

发表评论