Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js change value of every value in an object

//example function to loop through each key of an object and update each
Object.keys(objectName).forEach((key) => objectName[key] = "new value" });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #change #object
ADD COMMENT
Topic
Name
9+2 =