first question i post here. I'm learning js and trying to do some APIs for a college project. I have the body of the API that passes a JSON object like that:
This is data in .csv format file generally we expect array/ list with [1,2,3,4] comma separated values which it seems that nothing happened in this case data =
Is there a way to tell if some dynamic array, for example arr() as String is initialized? IsEmpty and IsNothing seems not to work with dynamic arrays. Currently
I want the array to be divided into days of the week according to the date specified in BETWEEN and AND public static function showDataByEmployer($employer) {
<script lang="ts" setup> interface Props { bigArray: string[]; } ***const props = withDefaults(defineProps<Props>(), { big
I am trying to modify struct element in array. I found that you can do that by accessing(iterate) the struct by index, but you can't if you use 'for in' loop or
For this json structs: { "a_path": { "b_path": [ { "id": 1, "name": "a" }, { "id": 2, "name": "b"
I want to push object that only have unique id1 into array. Example: let array = [], obj = {}, access = true if(access){ obj['id1'] = 1 obj['id
In my angular2 app i want to create a map which takes a number as key and returns an array of objects. I am currently implementing in following way but no luck.
I have a multidimensional array in php: Array ( [0] => Array ( [certificate_name] => track.site [domains] => track.site
I have successfully created a backend API using Node+Express+MSSQL and tested out the routes using POSTMAN. Now the challenging part is when I try to render the
I came across a problem that required iterating over an array in pairs. What's the best way to do this? Or, as an alternative, what's the best way of transformi
Does anyone know of a way (lodash if possible too) to group an array of objects by an object key then create a new array of objects based on the grouping? For e
I have a spreadsheet like this - I can't figure out how to dynamically search for this. I want to find the MAX Score Value + output the related name (no worries
I'm trying to create something that will check the date and produce a different variable result depending on the date today. This is my current code: <?php
I am trying to print a 2d array of a schedule that is inputted to me via object. When it prints, it is not giving me the values I want. Any idea what i doing wr
I'm trying to figure out how to calculate the median of an array of randomly generated numbers. I have the array all set up, but I'm having trouble putting toge
We are building an integration in a SAAS product which exports data from a table and writes it to a CSV file. Tool allows JavaScript (Which i am not very famili
I've been trying to solve this https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/profile-lookup/ with the following code
I'm trying to multiply each value from array_module_rate array. The result should be: $array_module_rate[0] = 25 $array_module_rate[1] = 15 $array_module_rate