Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
Get value of a variable based on another value in an array

What is the best way to get a value of a variable based on another in an array? Basically I want to return the balance (22752716) where the name is 'RiseBNB' for example and assign it to a variable which I can then show the user. This is a beginner question I'm assuming but all my attempts so far have failed.

This is the output I'm currently dealing with:

0: {balance: '0', decimals: 18, name: 'Binance Coin', symbol: 'BNB'} 1: {balance: '800000000000000000000000', contractType: 'ERC20', decimals: 18, name: 'TheVera.io', symbol: 'VERA', …} 2: {balance: '22752716', contractType: 'ERC20', decimals: 9, name: 'RiseBNB', symbol: 'RiseBNB', …} 3: {balance: '15000000000000', contractType: 'ERC20', decimals: 8, name: 'Minereum BSC', symbol: 'MNEB', …}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!