Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to update the object value of any array key based on value

var projects = {
   jqueryUi : {
      value:  'lol1',
      desc:   'lol2'
   }
};

projects.jqueryUi.desc = 'new string';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #object #array #key #based
ADD COMMENT
Topic
Name
6+2 =