Questions tagged [arrayobject]
ArrayObject class allows objects to work as arrays in PHP. Properties of the object have their normal functionality when accessed as list. Use this tag for questions related to arrayobject.
arrayobject
337
questions
0
votes
0
answers
34
views
How to Render Nested Array to Antd Design Table Datasource Component using React js
Hope you all doing fine. I am here for some advice from you guys.
I am having an nested array which I would like to render the rows at ant design table datasource object.
After tried many things I am ...
0
votes
0
answers
19
views
Model Creation for Dynamic property in C# [duplicate]
Existing data:
existing = {
"MediaLRN" :'2',
"Media":'a.2',
"CultureDetails":{
"24 Hrs": [
{
"Organism": "15&...
-1
votes
1
answer
161
views
sort array of objects by order of the property in a fixed format
I need to sort an array of object by property with the following order.
For the first item in the list: it is either Camel or Absolute
For the second item in the list: it has to be Dream,
For the ...
0
votes
2
answers
47
views
How to remove unwanted elements in JavaScript object array and create a new array [duplicate]
I have a JavaScript object array which has these attributes:
[
{
active: true
conditionText: "Really try not to die. We cannot afford to lose people"
conditionType: "...
0
votes
1
answer
63
views
how to make list of objects from a fragment of json-file?
i want to use json file from the api-request to google sheets. from request i am getting such file:
{
"range": "'Пн'!A1:AB986",
"majorDimension": "ROWS",
"...
-2
votes
2
answers
62
views
compare 2 arrays of objects to find answers related to a single question
I'm building a quiz app and I have 2 arrays of objects. I want to obtain another array associating the answers to their question.
How can I do this?
const questions = [{
id: 1,
text: question1
...
0
votes
1
answer
55
views
How to render an array of Object which is stored in local storage
I am working on a chat project where I want to push some data of objects to the array. I am storing my data in the local storage and when I enter the values in the input field, local storage got ...
1
vote
1
answer
32
views
How to display title alone of this Languages object in react native?
My goal is to display all the titles of these objects in react native.
{
"Languages": [
{
"PKM": "Languages",
"Title": "...
0
votes
5
answers
72
views
Merge array objects of different values in a new object
I have 3 array objects-
dates = [{date: '12/04/2023'}, {date: '13/04/2023'}]
days = [{day: 'Monday'}, {day: 'Tuesday'}]
time = [{time: '09-10'}, {time: '10-11'}]
the final array should be like:
final ...
0
votes
1
answer
58
views
Objects are not valid as a React childd
I have an array object in a nested array which is giving me an error obejcts are not valid, when i am trying to render it in the jsx for printing name and value
This is what my data looks like:
...
0
votes
1
answer
999
views
Return array object from resolver in nest js graphql Apollo play ground
I need to return array of objects in the nest js graphql resolver. I have a mongodb schema which have multiple object array in the schema.
@Schema()
@ObjectType()
export class Ingredient{
@Field(() =...
0
votes
2
answers
34
views
NaN after adding particular key element in an Array object
I have an Array object with 3000 objects. Among these 3000 few of them have grade and few object doesn't. Now I want to sum the grades. I'm getting NaN. Could you please guide me what am I doing wrong....
0
votes
2
answers
37
views
How to filter array object from another array object?
I want to make another array object from an array object, suppose I fetched a huge data from an api but I need only particular elements from that object. Exampl:-
const mainArray = [
{id: 1, name: '...
0
votes
1
answer
28
views
When I change data in element by id in array object, it duplicated to all elements
I just started using react.To store data, I use an array of objects. I specially created it of a certain length(100), so that using id to safely add user responses (id is out of order, you can answer ...
0
votes
1
answer
100
views
How to update and Save Array object in MongoDB (Mongoose + MongoDB)
I want to save the interview array object.
I want when scheduled round 1 occurs and their feedback too based on round 1, want to save round 1 data with feedback and round 2 data with feedback, and so ...