Posts by Rodrigo Alves • 11 points
4 posts
-
0
votes1
answer327
viewsQ: CSS: Pass values/parameters through class names
I would like to know if there is the possibility of informing values through class names to be used as values in the properties of the same. Example: .text-(color) { color: (color); } The result…
-
0
votes0
answers290
viewsQ: How do I save data to a JSON file using Javascript?
I would like to take the output of the console.log and keep saving in a file . JSON and then get a search inside it
-
0
votes1
answer47
viewsA: How do I find part of an element within an array? (Javascript)
I found the answer: value.filter(row => { const cnpj = row.cnpj || '' return cnpj.indexOf(this.search) >= 0 }) Just put the expected value of the index in a const…
javascriptanswered Rodrigo Alves 11 -
0
votes1
answer47
viewsQ: How do I find part of an element within an array? (Javascript)
I’m making a filter inside an array to pick up part of the element as typed in my search where: array.filter(row => row.cnpj.indexOf(search) >= 0) Considering 'search' the search typed, if…
javascriptasked Rodrigo Alves 11