Back

General list Question

  • 0
  • General
showmore
6 Apr, 2023, 08:12

Hey I know the use case of this platform is for appwrite and it helps me a lot. but today I wanna ask you a general question related with list object

TypeScript
[{'id': 1, 'name':'flutter', 'title':'dart'},

{'id': 35, 'name':'flutter', 'title':'dart'},

{'id': 93, 'name':'flutter', 'title':'dart'},
  
{'id': 82, 'name':'flutter', 'title':'dart'},

{'id': 28, 'name':'flutter', 'title':'dart'},
];

I have this list for example, and how can I achieve as below

TypeScript
[{'id': 1, 'name':'flutter'},

{'id': 35, 'name':'flutter'},

{'id': 93, 'name':'flutter'},
  
{'id': 82, 'name':'flutter'},

{'id': 28, 'name':'flutter'},
];

Remove title key from the list , Any help thanks

TL;DR
The user has a list of objects in Dart and wants to remove the "title" key from each object. The solution is to iterate through the list and remove the "title" key from each object.
safwan
6 Apr, 2023, 08:29

Do you want to do this in a specific language?

showmore
6 Apr, 2023, 09:40

in dart

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more