Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add object to another object javascript

object1 = { property1: 1, property2: 2}
finalObject = [{...object1}]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #object #object #javascript
ADD COMMENT
Topic
Name
9+5 =