Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js add fields to map

randomObject['hello'] = 'world';

//like
var myMap = {};

// ...

myMap[newKey] = newValue;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #add #fields #map
ADD COMMENT
Topic
Name
5+9 =