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

151
Views
ciclo FOR se detiene en el medio p5.js

Estoy haciendo esto para limpiar la matriz theClouds = [];

 function removeClouds(obj){ var index = theClouds.indexOf(obj); if ( index > -1){ theClouds.splice(index, 1); console.log(theClouds.length); } } function deleteClouds(){ for (let u = 0; u < theClouds.length; u++){ theCloud = theClouds[u]; removeClouds(theCloud); } }

Pero por alguna razón, el bucle se detiene en el medio, elimina uno o dos y luego ignora el resto, tengo que hacer clic en el botón que activa la función deleteClouds para forzar el bucle y eliminar todo.


Olvidé mencionar, pero theClouds[] es una matriz de matrices, no sé si eso concluye lo mismo, así que theClouds = [ the.cloud = [x,y, image]]

 Doing this will have the same point? function deleteClouds(){ theClouds = []; } }
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!