| 2021 | |||
|---|---|---|---|
|
Nov
2 |
|
comment |
how can I use Array.find() function to edit name and age properties inside specific object I was trying to find a solution with one line of code, but it seems it could not be done. Thanks |
|
Nov
2 |
|
comment |
how can I use Array.find() function to edit name and age properties inside specific object @ppicom you are right, I thought about it first and executed it on an online interpreter but it didn't work I think the problem is with that interpreter cause I tried your code on my local one and it works. I was trying to find a solution with one line of code, but it seems it could not be done. Thanks |
|
Nov
2 |
|
comment |
how can I use Array.find() function to edit name and age properties inside specific object In this way, the name of the object with id = 101 will still be jimmy, by assigning the value to a variable you exit the array and the edit will apply on the variable not the array. |
|
Nov
2 |
|
asked | how can I use Array.find() function to edit name and age properties inside specific object |
| 2018 | |||
|
Jan
17 |
|
comment |
update on array elements in javascript file and save it I need to keep the data in javascript file, so I overrite the file with php and problem solve, not easy choise but its ok.\n thanks for your help |
|
Jan
16 |
|
comment |
update on array elements in javascript file and save it using database is an the easy choice, but I thought inserting a 245 countries and 48300 cities in the database is a bad idea |
|
Jan
16 |
|
comment |
update on array elements in javascript file and save it I am using a dropdown list for selecting country and city, I am reading the countries and cities from a javascript file I want to have an ability to add new cities or edit some cities . |
|
Jan
16 |
|
asked | update on array elements in javascript file and save it |