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

133
Views
Javascript with blockchain development, address.trans returns [] when theres no transactions pend

address.trans returns [] when theres no transactions pend if(txs === []){ returns a transaction still

Any solutions? Basically registering a "depo" when I never depo'd to the generated wallet.enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This should be happening because an array is an object. And two objects even with the same value are not equal in JS because they have different reference.

You can see that below:

let trans = [];
console.log(trans === []);
console.log([] === []);
console.log(trans.length === 0);

Array.prototype.length can be one way to check it:

about 4 years ago · Juan Pablo Isaza Report
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!