devide values with JSONata
JSONata is honestly driving me crazy. I asked something similar a couple of weeks ago, but I still don't know what I'm doing so here I am again. What I'm working with: [[ { "time": "2024-04-26", "value": 40 }, {…
JSONata is honestly driving me crazy. I asked something similar a couple of weeks ago, but I still don't know what I'm doing so here I am again. What I'm working with: [[ { "time": "2024-04-26", "value": 40 }, {…
When I try to run this code without the Number(), it doesn't work. ar filter = (arr, fn) => { let filteredArr = []; for(const i in arr){ if(fn(arr[i], Number(i))) filteredArr.push(arr[i]) } return filteredArr; }; I don't understand why this…
I have 3 dropdowns selects (each drop-down has values from 0 to 25): <select class="form-select" id="select1" name="select1"> <option selected value="0">label...</option> <option value="5">label...</option> <option value="10">label...</option> <option value="15">label...</option> <option value="20">label...</option> <option value="25">label...</option> </select> <select class="form-select" id="select2" name="select2"> <option selected value="0">label...</option> <option value="5">label...</option>…