title: How can I find particular value from array in react native
body: <p>I am trying to find each link value  in different variables according to their name , like if name if facebook then facebooklink should filter , same lite twitter and all . But don't want to give index number . sometime fabook should be o index sometime twitter will be on 0 index . Please help  </p>
  
  <pre><code>socialMediaDetails:
              socialMediaDetail: Array(2)
              0:
              link: "HARIRAM@twitter.com"
              name: "twitter"
              __typename: "SocialMediaDetail"
              __proto__: Object
              1:
              link: "VarnaHERO@facebook.com"
              name: "facebook"
              __typename: "SocialMediaDetail"
              __proto__: Object
              2:
              link: "linkedIn@linkedin.com"
              name: "linkedIn"
              __typename: "SocialMediaDetail"
  
          const socialMediaData=socialMediaDetails.socialMediaDetail;
  
              const Steplabels = socialMediaData.filter((item) =&gt; {
                return item.name === "twitter"
              });
  </code></pre>
  
  <p>Thanks </p>