How to make a chained list with Javascript that points to an element I want?

Asked

Viewed 593 times

0

Example: I have an array of blocks, each block has a process object that has a state attribute, which can be free or busy. How do I make every free process, point to the next free process even having processes occupied between them ?

  • 1

    Set this array as an example, and some code you’ve tried, which makes it easy for us to help you.

  • If I understand your question, it is simple to manipulate collections using pure javascript, or with libraries like D3.js and lodash.js. Lodash is much friendlier. https://jsfiddle.net/egidiocs/g8ovtadq/ inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.