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

112
Views
¿Cómo obtener los resultados de esta clase en console.log?

¿Cómo obtener los resultados "_pathsArr (incluida la identificación media), bestPath y las cantidades_fuera" en console.log?

Básicamente, necesito los arrPaths, incluida su identificación y la cantidad de cada uno.

También necesito saber dónde ingresar manualmente la cantidad_en para pruebas temporales.

Gracias.

Este es mi código:

 import { toFixed, accDiv } from './public'; // import Worker from './worker' // import VueWorker from 'vue-worker' class swapRouter { constructor() { this.markets = []; this.pair_market_map = {}; this.mid_market_map = {}; this.tokens = []; this.paths = []; this.isInit = false; this._pathsArr = []; this.bestPath = ''; } init(data, vThis) { this.markets = data || []; this._pathsArr = []; this.bestPath = ''; if (this.paths.length) { return } if (window.Worker) { this.workerToInitPath(vThis) } else { this.initPath() } } workerToInitPath(vThis) { HERE GOES THE CODE THAT FINDS THE PATHS AND AMOUNTS_OUT } const d = [{ here are the data correctly organized } const swapRouter1 = new swapRouter() swapRouter1.init(d) console.log(swapRouter1);

¿Está esto correctamente declarado?

 this.bestPath = '';

O debe ser:

 this.bestPath = [];

Porque obtenga solo mercados, tokens y rutas en el resultado (console.log), pero no obtenga_pathsArr y bestPath.

También necesito que los resultados de la ruta incluyan el "medio" (el número de identificación).

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!